阅读背景:

使用Requests和Django从脚本登录网页

来源:互联网 

I have written a web application in Django. I need to post some data to a form from a python script. The post (r2) works correctly when login is disabled. I have the request working correctly for the login (r1), but it gives me a 404 error now for the form post (r2). The login doesn't appear to be carried over to the second request. The csrftoken and sessionid are hardcoded for testing because it wasn't recognizing them. Relevant code (url base removed):I have written a web application in Django. I n




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: