void wxCurlHTTP::SetCurlHandleToDefaults(const wxString& relativeURL) { wxCurlBase::SetCurlHandleToDefaults(relativeURL); if(m_bUseCookies) { SetStringOpt(CURLOPT_COOKIEJAR, m_szCookieFile); } }
void wxCurlFTP::SetCurlHandleToDefaults(const wxString& relativeURL) { wxCurlBase::SetCurlHandleToDefaults(relativeURL); m_szCurrFilename = wxEmptyString; m_szCurrFullPath = wxEmptyString; if(m_bUsePortOption) { SetStringOpt(CURLOPT_FTPPORT, m_szPortParam); } if(m_bUseEPRT) { SetOpt(CURLOPT_FTP_USE_EPRT, TRUE); } if(m_bUseEPSV) { SetOpt(CURLOPT_FTP_USE_EPSV, TRUE); } if(m_bCreateMissingDirs) { SetOpt(CURLOPT_FTP_CREATE_MISSING_DIRS, TRUE); } if(m_bAppend) { SetOpt(CURLOPT_FTPAPPEND, TRUE); } if(m_tmMode == kASCII) { SetOpt(CURLOPT_TRANSFERTEXT, TRUE); } }
/** \brief wxCurlHTTP for some odd reason does not honor the options, override the offending method and set them here * * \param relativeURL const wxString& * \return void * */ void myCurlHTTP::SetCurlHandleToDefaults(const wxString& relativeURL) { wxCurlHTTP::SetCurlHandleToDefaults(relativeURL); SetStringOpt(CURLOPT_ENCODING, "gzip,deflate"); }