You are here: Re: Having Trouble With CURL Function, Please Help « PHP Programming Language « IT news, forums, messages
Re: Having Trouble With CURL Function, Please Help

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация