php / curl form filling

Status
Not open for further replies.

ibold

New member
Feb 10, 2007
12
0
0
ok, so I'm following the guide that I found on a members blog over here... Basic PHP Form Filling Tutorial - Oooff.com I've downloaded the live HTTP headers, and have disabled JS, meta redirects, referrers as it suggests. Now when I go to fill out a form, click next, it still forwards me to the 'thank you' page so I can't see the headers being sent out. Is there another way it's forwarding me? Something I'm missing? Thanks in advance for any help, I appreciate it.
 


and after posting this I found a perfect solution...

Tamper Data plugin for firefox gives you all of the headers sent / received in one window so you don't have to keep click on the page information like you would with live HTTP headers:

https://addons.mozilla.org/en-US/firefox/addon/966

Just figured I'd post it in case anyone else hit the same wall..
 
even if it redirects you, the first header on the list is usually the one you need anyways, then just clear the file and go again.
 
yeah look at your repsonse codes for each step, sometimes you'll see 5-10 3xx reponses in a row and then you find a final resting place. but as mentioned you just want to care about the first one then turn on

curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 100);

which will do it's best to follow the redirects and get you to the final destination.
 
CURLOPT_FOLLOWLOCATION is supposed to have a boolean value, 0 or 1... true or false. CURLOPT_MAXREDIRS is to set the maximum number of header redirects that curl will follow when FOLLOWLOCATION is enabled.

to the OP, you're apparently not using livehttpheaders right. scroll up!
 
Status
Not open for further replies.