---
title: "通过fiddler抓取eclipse中httpclient发送的请求"
author: "wangning1125"
date: "2018-01-26T14:44:27Z"
tags: []
categories: ["开源软件"]
slug: "fiddler-eclipse-httpclient"
draft: false
lastmod: "2018-01-26T14:44:27Z"
id: 2409161
url: "https://wangning1125.iteye.com/blog/2409161"
---

该方法不适用于https的请求（配置证书太麻烦，而且还不一定能成功），如果可以请换成http请求，测试完之后再换回来。

 

1.给httpclient设置代理 setProxy(new HttpHost("127.0.0.1", 8888)) 

2.fiddler-tools-options-connections-fiddler listnes on port 改成 8888

3.把https请求换成http请求