Recently, I've been stuck on a Web service call that wouldn't be called as supposed to be. When having troubles with WS, it's very important to dump client request and server response.
Using cURL withing PHP, I couldn't understand why my code was building a POST
request and cURL returned me a GET
request instead when the URI was getting a 301
redirection.
Turned out that it was a configuration issue because the URI wasn't the right one. Thanks to the config team!
What cURL says
When curl follows a redirect and the request is not a plain GET (for> Continue Reading