Hi guy's, I have been stuck on this problem for a few days now. Here is what the code looks like,
$httpClient->post('/car/about/submit/'.$linkUID.'&'.$thestr)->send();
My first question is, can I post like this? and is there any way I can get the raw post info i.e. headers raw string etc that guzzle is actually posting? I just want to see what it looks like before I jump to any conclusion of what it might be that is causing the problem. I am pretty sure that i have my $thestr (which is my post data) formatted right, but going through the code and trying to parse it out is time consuming.
I did get this message when i put the above piece of code in a try catch.
Client error response [status code] 400 [reason phrase] Bad Request [url]
After reading on w3c about 400 it would suggest that the url that I have put together is wrong and the server cannot handle it, i really need a way to dump exactly what guzzle is posting so i can compair it to what the server is expecting.
W3C about 400 status:
10.4.1 400 Bad Request
The request could not be understood by the server due to malformed
syntax. The client SHOULD NOT repeat the request without
modifications.
The url that I have put together contains about 70 different pieces of post data, so it's hard to go through it, I have dumped the $thestr and went through it, from what I can see it is formatted correctly but its so big, that i could be wrong, and guzzle could be changing something when it is posting it. This is why i need to try and dump the raw guzzle post.
Any help is much appreciated,
Thanks,
- Anton.