在Eclipse代码中发起http请求,该如何对该请求进行抓包,请各位大大提供个方法或者工具,最好能看到发送请求的头,还有url地址,类似于下面这种:
- HTML code
POST http://openapi.webshop.cn/ProductImage/15802/True HTTP/1.1Authorization: oauth token=6458e39a44bf4d2a9ef1abb73a3f52cfContent-Type: multipart/form-data; boundary=---------------------8cec4cef18888e4Host: openapi.webshop.cnContent-Length: 67145Expect: 100-continue-----------------------8cec4cef18888e4Content-Disposition: form-data; name="file"; filename="1.jpg"Content-Type: application/octet-stream?????JFIF??`?`?????Exif??MM?*???????????????????????????(???????1????????2????????;????????GF???????GI?????&????????????i??????????|?????'?????'Adobe Photoshop CS3 Windows?2011:02:22 04:11:43?Amish Patel?© Microsoft Corporation??????????R???????f??????00????????00?????????????????????????w????2008:03:24 16:41:53?2008:03:24 16:41:53?????????????????????????(???????????????????????????H??????H????????JFIF???H?H?????Adobe_CM????Adobe?d????????? 。 。 。-----------------------8cec4cef18888e4--
在这里谢谢各位了
------解决方案--------------------
不知道firefox的HttpFox可以满足要求不
------解决方案--------------------
Wireshark、Sniffer等工具都行,前者容易使用些。
------解决方案--------------------
httpansylt
------解决方案--------------------
Wireshark 很好用,我就是用这个。要的的话我给你发一个。