[prev in list] [next in list] [prev in thread] [next in thread] 

List:       curl-and-php
Subject:    Re: translating post into cURL
From:       Daniel Stenberg <daniel () haxx ! se>
Date:       2002-09-23 12:27:41
[Download RAW message or body]

On Sat, 21 Sep 2002, Jeff Schwartz wrote:

> I'm working on a program to access AOL mail. I can log in normally via the
> following post:
> 
> <form  method=post \
> action="https://my.screenname.aol.com/_cqr/login/login.psp?screenname=LOGIN&password=PASSWORD&submitSwitch=1&siteId=aolcomprod&mcState=initialized&authLev=1">
>  <input type="submit" value="submit">
> 
> However, when I try to do the same with cURL using:

[snip]

> It delivers the cookie but stops, as though I had CURLOPT_RETURNTRANSFER
> turned off. Any ideas?

The AOL-login performs automatic javascript posts based on variables embedded
in the returned HTML (and cookies). You need to do some extracting of that
data and fiddle around quite a lot to get it working.

Unless you find a shortcut.

-- 
 Daniel Stenberg -- curl related mails on curl related mailing lists please



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic