# HG changeset patch # User Mike Miller # Date 1346992408 14400 # Node ID af54273243fdb4d4da1a4083146278008a3dbba9 # Parent c42bf5cadb604308770b13bc891732324d135554 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. diff -r c42bf5cadb60 -r af54273243fd libinterp/dldfcn/urlwrite.cc --- a/libinterp/dldfcn/urlwrite.cc Thu Sep 06 23:02:05 2012 -0400 +++ b/libinterp/dldfcn/urlwrite.cc Fri Sep 07 00:33:28 2012 -0400 @@ -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);