cURL / Mailing Lists / curl-and-php / Single Mail

curl-and-php

Re: translating post into cURL

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 23 Sep 2002 14:27:41 +0200 (MET DST)

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
Received on 2002-09-23