Check if specified HTTP method is incompatible with posting data
Currently data can be used with POST or PUT HTTP methods only.
This commit is contained in:
@@ -219,6 +219,12 @@ void wxWebRequestCURL::Start()
|
|||||||
curl_easy_setopt(m_handle, CURLOPT_INFILESIZE_LARGE,
|
curl_easy_setopt(m_handle, CURLOPT_INFILESIZE_LARGE,
|
||||||
static_cast<curl_off_t>(m_dataSize));
|
static_cast<curl_off_t>(m_dataSize));
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
wxFAIL_MSG(wxString::Format(
|
||||||
|
"Supplied data is ignored when using method %s", m_method
|
||||||
|
));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( m_method.CmpNoCase("HEAD") == 0 )
|
if ( m_method.CmpNoCase("HEAD") == 0 )
|
||||||
|
Reference in New Issue
Block a user