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

curl-and-php

302 issue

From: Shallway Xu <shallway.xu_at_gmail.com>
Date: Tue, 11 Dec 2007 14:41:11 +0800

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
Received on 2007-12-11