△▲ WebProg 初心者の質問 Part19 ▼▽at PHP
△▲ WebProg 初心者の質問 Part19 ▼▽ - 暇つぶし2ch858:nobodyさん
09/10/21 12:48:46
pixivにアクセスしてゴニョゴニョしようと思っています。(こういう質問はNGですか?)
いろいろソースが公開されているのはわかってるのですがHTTPの勉強も兼ねて作ってます。
POST /index.php HTTP/1.1
User-Agent: Mozilla/4.0 (Compatible; MSIE 8.0; Windows NT 5.1;)
Date: Wed, 21 Oct 2009 02:58:26 GMT
Accept: */*
Accept-Language: ja
Host: www.pixiv.net
Content-Type: application/x-www-form-urlencoded
Content-Length: 47

mode=login&pixiv_id=xxxxx&pass=xxxxxxxx&skip=1
で、とりあえずcookieを返してくるのでログインできてるっぽい?のですが

HTTP/1.1 302 Found
Date: Wed, 21 Oct 2009 02:51:54 GMT
Server: Apache
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Location: URLリンク(www.pixiv.net)
Content-Length: 0
Content-Type: text/html; charset=UTF-8
Set-Cookie: PHPSESSID=79175a735e8ee421c62aa4c3289a4056; path=/; domain=.pixiv.net
Set-Cookie: pixiv=user_id%xxxxxxxx%26user_pass%xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx%26user_mail_address%xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx; expires=Fri, 20-Nov-2009 02:51:54 GMT; path=/; domain=.pixiv.net
Set-Cookie: PHPSESSID=143d52eef6436f41559e3af4280faadc; path=/; domain=.pixiv.net
Vary: Accept-Encoding
Connection: close
て感じでレスポンスされて、このあと/mypage.phpをCookieつけてGETしてるのですが
同じくContent-Length: 0で同じようなcookieを返されるだけで中身を返してくれません。
何か間違ってますでしょうか?もしかしてログインできてないのかな


次ページ
最新レス表示
レスジャンプ
類似スレ一覧
スレッドの検索
話題のニュース
おまかせリスト
オプション
しおりを挟む
スレッドに書込
スレッドの一覧
暇つぶし2ch