Глобальный рейтинг: 11337
Всего очков: 348
Posts: 2
Thanks: 1
UpVotes: 1
Registered: 6y 349d
The User is Offline
First i click the link,page shows the return code. And i get cookie from chrome
I write a python script but cannot get the return code by first request.
GeSHi`ed Plaintext code for
requests 1
2
3
| headers = {"Cookie":"WC=XXXXXXXXXXXXXX"}
res = requests.get('http://www.wechall.net/challenge/training/programming1/index.php?action=request',
headers=headers) |
but it always return "Please login by sending your cookies in the HTTP Header."
PS: python version 2.7.14
Глобальный рейтинг: 11337
Всего очков: 348
Posts: 2
Thanks: 1
UpVotes: 1
Registered: 6y 349d
The User is Offline
Quote from dloserJun 13, 2018 - 14:59:04
Works for me. Make sure you are doing this from the same IP as your browser. (And that you copy the cookie correctly.)
B.t.w.: Usually not the best idea to share your own cookie like that. ;)
Thks a lot. I used the proxy.It changed the source ip right?So ip is different between local and browser.