|
Posted by Andy Hassall on 12/13/06 23:29
On 13 Dec 2006 10:44:06 -0800, "devranger" <knee-dragger@hotmail.com> wrote:
>$data="MasterTemplate:_PageTemplate:cphCenterContent:CenterContent:fcDropDownList=ATVs&MasterTemplate:_PageTemplate:cphCenterContent:CenterContent:zipTextBox=77090";
[snip]
>curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
What's with the colons in the data? That doesn't look like the sort of data
that you'd normally send in a POST.
And if you capture the POST from visiting that page with a browser, there's a
colossal amount of junk posted along with the form, nearly 2k of the stuff.
Which probably has some meaning to the page. Try it out with LiveHTTPHeaders or
similar.
When pasting all this back in exactly as the $data field it works, but it's so
cryptic I have no idea if it'd continue to work. (And depending on what you're
doing with the data you're getting out of the page the owners of the page may
not be happy about it either - have you just asked them for the information
directly?)
--
Andy Hassall :: andy@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
Navigation:
[Reply to this message]
|