Esempio n. 1
0
	size_t wxcurl_string_write(void* ptr, size_t size, size_t nmemb, void* pcharbuf)
	{
		size_t iRealSize = size * nmemb;
		wxCharBuffer* pStr = (wxCharBuffer*) pcharbuf;

		if(pStr)
		{
			wxString str = wxCURL_BUF2STRING(*pStr) + wxString((const char*)ptr, wxConvLibc);
			*pStr = wxCURL_STRING2BUF(str);
		}

		return iRealSize;
	}
Esempio n. 2
0
void wxCurlHTTP::SetCookieFile(const wxString& szFilePath)
{
    m_szCookieFile = wxCURL_STRING2BUF(szFilePath);
}
Esempio n. 3
0
void wxCurlFTP::SetPortParam(const wxString& szParam /*= wxS("-")*/)
{
	m_szPortParam = wxCURL_STRING2BUF(szParam);
}