Fiddler 捕获 nodejs 模拟的http请求
2024-10-15 21:30:00
1、设置Fiddler
Tools->Options-> Connections
Allow remote computers to connect:
2、nodejs 请求有多种
2.1 用https或者http请求
该种方法貌似需要额外的代理软件监听上图中的8888端口
2.2 用request 等其他第三方模块
request({
method:"GET",
proxy:'http://127.0.0.1:8888',
uri:'https://www.howsmyssl.com/a/check',
"rejectUnauthorized": false,
// agentOptions: {// secureProtocol: 'TLSv1_2_method'
// },
},(err,res,body)=>{
console.log(err)
console.log(res)
console.log();
});
nodeJS 其他请求模块:
https://github.com/visionmedia/superagent
https://github.com/axios/axios
https://github.com/request/request#tlsssl-protocol-
https://stackoverflow.com/questions/31673587/error-unable-to-verify-the-first-certificate-in-nodejs
https://stackoverflow.com/questions/44629256/configure-https-agent-to-allow-only-tls1-2-for-outgoing-requests
最新文章
- angular2
- JSP之WEB服务器:Apache与Tomcat的区别 ,几种常见的web/应用服务器
- 【java基础学习】线程
- OneNote 2013 快捷键
- 转:JQuery中$.ajax()方法参数详解
- JS中Date对象getYear()方法和getFullYear()方法区别
- java源程序---可执行文件(.exe)----安装包
- 【Convert Sorted List to Binary Search Tree】cpp
- iOS获取文件和文件夹大小
- Windows 进程通信 之 DDE技术
- vim常用命令 vim键盘布局
- (转载)细说PHP中strlen和mb_strlen的区别
- 如何关闭tomcat的localhost_access_log?
- PHP-day01
- Mac下VirtualBox共享文件夹设置
- 电脑开机后,就会自动运行chkdsk,我想取消chkdsk,怎么取消
- hdu 5120(2014北京—求圆相交)
- Typescript 查缺补漏
- [开发笔记]--把input框设置成font-size:0埋下的坑。
- angular2的lazyload初体验