Mercurial > hg > octave-thorsten
changeset 15326:af54273243fd draft
urlwrite.cc: Ensure the default HTTP request method is reset to GET
* urlwrite.cc (curl_handle::curl_handle): Ensure the default HTTP
request method is reset to GET.
author | Mike Miller <mtmiller@ieee.org> |
---|---|
date | Fri, 07 Sep 2012 00:33:28 -0400 |
parents | c42bf5cadb60 |
children | d9b955926a50 |
files | libinterp/dldfcn/urlwrite.cc |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libinterp/dldfcn/urlwrite.cc +++ b/libinterp/dldfcn/urlwrite.cc @@ -200,6 +200,11 @@ setopt (CURLOPT_NOBODY, 0); + // Restore the default HTTP request method to GET after setting + // NOBODY to true and back to false. This is needed for backward + // compatibility with versions of libcurl < 7.18.2. + setopt (CURLOPT_HTTPGET, 1); + // Don't need to store the parameters here as we can't change // the URL after the handle is created std::string query_string = form_query_string (param);