cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Posting to Yahoo email

From: Ralph Mitchell <ralphmitchell_at_gmail.com>
Date: Thu, 7 Sep 2006 23:31:00 -0500

On 9/7/06, Jeff McKay <comaxis_at_yahoo.com> wrote:
> I am trying to adapt YPOPS (uses libcurl) code to my
> own application, which will do something similar (i.e.
> reading Yahoo email). So far I have not got past the
> login process. I get the initial login form, and do a
> POST to the appropriate location with all the data
> fields set. However instead of ending up with the
> successful login page, I get a page that says "If you
> are seeing this page, your browser settings prevent
> you from automatically redirecting to a new URL. " I
> do have CURLOPT_FOLLOWLOCATION set (otherwise I don't
> even get that far). Any ideas for me?

FOLLOWLOCATION only follows redirects in Location headers. If the
page does something magic with javascript, or even with a META Refresh
tag, you need to simulate that in your own code.

Ralph Mitchell
Received on 2006-09-08