简体   繁体   English

当我要下载PDF时,提交表格后没有发帖请求

[英]No post request after submitting a form when I want to download a PDF

I'm writing a script to download a pdf automatically. 我正在编写一个脚本来自动下载pdf。 Firstly, I open the url manually, it will redirect to a login website. 首先,我手动打开URL,它将重定向到登录网站。 and I type my username and password, and click "submit". 然后输入我的用户名和密码,然后单击“提交”。 Then download will start directly. 然后将直接开始下载。 During this procedure, I check the firebug, I find there is no post while I click "submit". 在此过程中,我检查了萤火虫,单击“提交”后发现没有帖子。

I'm not familiar with this behavior, that means the pdf(300K) is saved before I submit? 我不熟悉此行为,这意味着在提交之前已保存pdf(300K)? If there is no post, then I must use some tool like selenium to simulate this "click"? 如果没有帖子,那么我必须使用诸如selenium之类的工具来模拟这种“点击”吗?

Is there no request at all, or a GET request? 根本没有任何请求,还是没有GET请求? I suspect there is a GET request. 我怀疑有GET请求。 In that case, did you turn Persist on in Firebug's Net tab? 在这种情况下,您是否在Firebug的“网络”标签中启用了Persist Possibly the POST request was hidden after redirects. 重定向后可能会隐藏POST请求。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM