Skip to content

Commit

Permalink
Added request data without headers for logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Delmwin Baeka authored Jun 9, 2021
1 parent e110d63 commit d924d99
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/nusoap.php
Original file line number Diff line number Diff line change
Expand Up @@ -7395,6 +7395,7 @@ class nusoap_client extends nusoap_base
var $persistentConnection = false;
var $defaultRpcParams = false; // This is no longer used
var $request = ''; // HTTP request
var $requestData = ''; // SOAP payload of request
var $response = ''; // HTTP response
var $responseData = ''; // SOAP payload of response
var $cookies = array(); // Cookies from response or for request
Expand Down Expand Up @@ -7509,6 +7510,7 @@ function call($operation, $params = array(), $namespace = 'http://tempuri.org',
$this->setError('');
$this->request = '';
$this->response = '';
$this->requestData = '';
$this->responseData = '';
$this->faultstring = '';
$this->faultcode = '';
Expand Down Expand Up @@ -7797,6 +7799,7 @@ function send($msg, $soapaction = '', $timeout = 0, $response_timeout = 30)
$http->setEncoding($this->http_encoding);
}
$this->debug('sending message, length=' . strlen($msg));
$this->requestData = $msg;
if (preg_match('/^http:/', $this->endpoint)) {
//if(strpos($this->endpoint,'http:')){
$this->responseData = $http->send($msg, $timeout, $response_timeout, $this->cookies);
Expand Down

0 comments on commit d924d99

Please sign in to comment.