How to log outgoing http requests from PHP + cURL? -


I have a PHP script installed that cURL requests when performing any action on a site. The problem is that whenever the action moves, the information is being posted twice.

I need to know that it is a problem on my end (the CRL is being played twice) or to post to the URL

I feel like doing this The best way to see outgoing HTTP POST requests from the server.

Is this the best option? If so, how do I go about it?

Surely sensible you use the error_log function before calling curl , And ini_set ('error-log', 'filename'); Set the head of your file with ini_set ('log_errors') true); . Then, you run the page a few times and check the file, which will tell you how often the CRL request was made.

The cURL is extremely reliable either your code is doing something wrong, and calling the curl twice or the service you are posting is stupid (I always doubt myself first , So log all errors and subscribe to the file's feed for live sites.)

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -