V
V
Valery Rusin2012-11-09 10:55:56
linux
Valery Rusin, 2012-11-09 10:55:56

SoapClient in PHP: how to get HTTP headers?

Good afternoon! The situation is as follows: I have my web server and SOAP server of some organization. The web server, using SoapClient in PHP5, calls the SOAP server API around the clock at fairly frequent intervals. Some days (usually at night) suddenly all API requests to the SOAP server end with a local SoapClient exception "Error Fetching http headers". All this continues for some time, usually several hours, then everything works well. The problem is that the SOAP server successfully processes these calls, and we, due to an exception, consider them to be erroneous. According to the text of the error, it is clear that the problem is in getting HTTP response headers from the SOAP server. The network suggests increasing the SoapClient timeouts, but this did not help. Obviously, the error is on the side of the SOAP server, but I would like to make sure of this.
Actually, the question is this: how can you get the HTTP headers of these SOAP calls? Judging by the SoapClient documentation in PHP, this cannot be done using the interpreter. Then maybe you should run a sniffer? Ultimately, you need to make sure that the headers from the SOAP server are not correct.
Additional information: on the Debian OS web server, PHP 5.3.7.
Thanks to!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
C
cat_crash, 2012-11-09
@cat_crash

Perhaps there is a more subtle way. But if you don’t find it, Wireshark (tcpdump) will definitely help you.

N
NeX, 2012-11-09
@NeX

www.php.net/manual/en/soapclient.getlastresponseheaders.php

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question