从命令行下载https页面源代码


0

是否有一个命令行工具可以让我浏览到一个站点(在https上)并下载页面的输出(它的来源)?

Answers:



0
wget --no-check-certificate https://whatever.example.com/somepage.html

如果您的信任存储区中没有whatever.example.com的SSL签名者,则该--no-check-certficate标志会使其不会出错。


0

Curl可以下载HTTPS页面。

curl是一个命令行工具,用于使用URL语法传输数据,支持DICT,FILE,FTP,FTPS,Gopher,HTTP,HTTPS,IMAP,IMAPS,LDAP,LDAPS,POP3,POP3S,RTMP,RTSP,SCP,SFTP,SMTP, SMTPS,Telnet和TFTP。curl支持SSL证书,HTTP POST,HTTP PUT,FTP上传,基于HTTP表单的上传,代理,cookie,用户+密码认证(基本,摘要,NTLM,协商,kerberos ......),文件传输恢复,代理隧道和大量其他有用的技巧。

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.