Send query of URL in wxWebRequestWinHTTP
This commit is contained in:
@@ -268,9 +268,13 @@ void wxWebRequestWinHTTP::Start()
|
|||||||
else
|
else
|
||||||
method = "GET";
|
method = "GET";
|
||||||
|
|
||||||
|
wxString objectName = uri.GetPath();
|
||||||
|
if ( uri.HasQuery() )
|
||||||
|
objectName += "?" + uri.GetQuery();
|
||||||
|
|
||||||
// Open a request
|
// Open a request
|
||||||
m_request = ::WinHttpOpenRequest(m_connect,
|
m_request = ::WinHttpOpenRequest(m_connect,
|
||||||
method.wc_str(), uri.GetPath().wc_str(),
|
method.wc_str(), objectName.wc_str(),
|
||||||
NULL, WINHTTP_NO_REFERER,
|
NULL, WINHTTP_NO_REFERER,
|
||||||
WINHTTP_DEFAULT_ACCEPT_TYPES,
|
WINHTTP_DEFAULT_ACCEPT_TYPES,
|
||||||
(isSecure) ? WINHTTP_FLAG_SECURE : 0);
|
(isSecure) ? WINHTTP_FLAG_SECURE : 0);
|
||||||
|
Reference in New Issue
Block a user