curl-and-php
Re: 302 issue
Date: Tue, 1 Jan 2008 12:34:02 -0600 (CST)
Perhaps try turning off/on FOLLOWLOCATION and seeing where the headers
are trying to bounce you.
I'm guessing you'll end up seeing some Cookies in the headers, and
you'll need to use COOKIEJAR and COOKIEFILE.
On Tue, December 11, 2007 12:41 am, Shallway Xu wrote:
> hi guys,
> I was trying to exchange google single use tokens with curl&php.
> ----------------------------------------------------------
> $ch = curl_init();
> curl_setopt($ch, CURLOPT_URL, '
> http://www.google.com/accounts/AuthSubSessionToken');
> curl_setopt($ch, CURLOPT_HTTPHEADER, array("Authorization: AuthSub
> token=$token", "X-Google-Key: key=$devkey"));
> curl_exec($ch);
> curl_close($ch);
> ----------------------------------------------------------
> After execution, I got this on the page:
> ----------------------------------------------------------
> Moved Temporarily The document has moved
> here<https://www.google.com/accounts/AuthSubSessionToken>
> .
>
> --------------------------------------------------------------
> And I can't see any request and responses from curl&php.
> Did I miss something on this? Thank you.
> _______________________________________________
> http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
>
-- Some people have a "gift" link here. Know what I want? I want you to buy a CD from some indie artist. http://cdbaby.com/from/lynch Yeah, I get a buck. So? _______________________________________________ http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-phpReceived on 2008-01-01