php - Preview CURL request prior to sending it -


I am sending an XML SOAP request through the curl in PHP.

Is there a way to view the entire request, including the header before sending it (print_r / var_dump)?

see CURLOPT_VERBOSE . But I do not think that until the request is complete, you will be able to get anything from it.

  curl_setopt ($ curl, CURLOPT_VERBOSE, true);   

Look for PHP for options.

Comments