当我把这个网址(下面)粘贴到我的网页浏览器。。。铬 https://login.oracle.com/mysso/signon.jsp(Oracle登录) 我有个错误说。。。在
Error! Do not use bookmarked URL.
Please type the URL you are trying to reach directly into your browser.
但是当我输入http://hudsonci.oraclecorp.com/jenkins/rgbu_jenkins/时,我被重定向到Oracle登录。在
但是,当我尝试使用python中的requests模块执行相同的操作时,它给出了以下内容:
^{pr2}$在 在
下面是我的python代码:
import sys
import requests
def mprint(x):
sys.stdout.write(x)
return
URL = 'https://hudsonci.oraclecorp.com/jenkins/rgbu_jenkins'
mprint('[-] Initialization...')
s = requests.session()
print 'done'
mprint('[-] Trying loginSuccess.jsp...')
r = requests.get(URL)
if r.status_code != requests.codes.ok:
print 'error'
exit(1)
print 'done'
我想知道为什么请求不发生这种情况,以及我可以使用的其他方法是什么。在
提前谢谢!!在
目前没有回答
相关问题 更多 >
编程相关推荐