[問題] node用request登入
https://www.discogs.com/login?nologin=1&return=%2Fsell%2Fhistory%2F1985784%3F
我想用request(這個 https://github.com/request/request) 登入這個網頁
(登入form的action也是這個網址)
這是我用的code:
request.post({
uri:
"https://www.discogs.com/login?nologin=1&return=%2Fsell%2Fhistory%2F1985784%3F",
form: {username: "xxxx", password: "yyyy"}
}, function (err, res, body) {
if (err) console.log(err);
console.log(body);
});
不過body還是一樣的頁面
我希望能得到登入後的頁面
https://www.discogs.com/sell/history/1985784
請問我那裏弄錯了?
謝謝
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 108.0.72.181
※ 文章網址: https://www.ptt.cc/bbs/Ajax/M.1459898462.A.922.html
推
04/06 18:43, , 1F
04/06 18:43, 1F
→
04/06 18:43, , 2F
04/06 18:43, 2F
→
04/06 18:43, , 3F
04/06 18:43, 3F
→
04/06 18:43, , 4F
04/06 18:43, 4F
→
04/06 18:46, , 5F
04/06 18:46, 5F
→
04/06 18:46, , 6F
04/06 18:46, 6F
→
04/06 18:49, , 7F
04/06 18:49, 7F
→
04/06 18:49, , 8F
04/06 18:49, 8F
→
04/07 12:08, , 9F
04/07 12:08, 9F
Ajax 近期熱門文章
PTT數位生活區 即時熱門文章