Skip to content

Commit

Permalink
msHTTPExecuteRequests(): log POST content if debug is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
rouault committed Feb 18, 2016
1 parent 3c848d4 commit de7ef60
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions maphttp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
}
Expand Down

0 comments on commit de7ef60

Please sign in to comment.