Re: cURL - Error 400
| From: | David | Date: | Thu, 16 Apr 2009 02:18:30 +0000 |
| Subject: | Re: cURL - Error 400 | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-291546@lists.php.net to get a copy of this message | ||
Except I also need to POST data to the server to login. After I've logged
in, I then need to use cookies to maintain a session.
Doing that via file_get_contents() just isn't possible.
Thanks
On Thu, Apr 16, 2009 at 2:30 AM, haliphax <haliphax@gmail.com> wrote:
> On Wed, Apr 15, 2009 at 10:36 AM, David <quick.webmaster@gmail.com>
>> wrote:
>> > I was wondering if anyone could please help me with this cURL script
>> since I
>> > keep getting error 400 from the web server:
>> >
>> > http://pastebin.ca/1392840
>> >
>> > It worked until around a month ago which is when they presumably made
>> > changes to the site. Except I can't figure out what configuration option
>> in
>> > the cURL PHP script needs to be changed. I can visit the site perfectly
>> in
>> > Lynx, Firefox and IE.
>>
>> Are you just trying to get the contents of the page, or is there
>> something special you're doing? If it's just the contents you're
>> after, try file_get_contents() if allow_url_fopen is set to TRUE for
>> your PHP installation.
>>
>> http://php.net/file_get_contents
>> http://php.net/allow_url_fopen
>>
>> Hope this helps,
>>
>>
>> --
>> // Todd
>>
>
>