Permalink
Browse files

msHTTPExecuteRequests(): log POST content if debug is enabled

  • Loading branch information...
rouault committed Feb 18, 2016
1 parent 3c848d4 commit de7ef60c4cd04ea9708a17052c48d8875f067410
Showing with 4 additions and 0 deletions.
  1. +4 −0 maphttp.c
@@ -688,6 +688,10 @@ int msHTTPExecuteRequests(httpRequestObj *pasReqInfo, int numRequests,
curl_easy_setopt(http_handle, CURLOPT_POST, 1 );
curl_easy_setopt(http_handle, CURLOPT_POSTFIELDS,
pasReqInfo[i].pszPostRequest);
if( debug )
{
msDebug("HTTP: POST = %s", pasReqInfo[i].pszPostRequest);
}
curl_easy_setopt(http_handle, CURLOPT_HTTPHEADER, headers);
/* curl_slist_free_all(headers); */ /* free the header list */
}

0 comments on commit de7ef60

Please sign in to comment.