From c#, is there a way to capture what is being sent to a web server and what is coming back from a web server, for example:
Bash
New connection accepted /127.0.0.1:49250
==>GET /WebServer.java HTTP/1.1
Host: 127.0.0.1
==>User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20030225
==>Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,video/x-mng,image/png,image/jpeg,image/gif;q=0.2,text/css,*/*;q=0.1
==>Accept-Language: en-us, en;q=0.50
==>Accept-Encoding: gzip, deflate, compress;q=0.9
==>Accept-Charset: ISO-8859-1, utf-8;q=0.66, *;q=0.66
==>Keep-Alive: 300
==>Connection: keep-alive
==>Code
I'm also interested in what is being sent and coming back from a web service.Code
Thanks for your help.
Roei BarRank #1,271 · 1.4K reputationPosted Oct 2, 2009, 6:50 AM EDT
you can just build a module that will be listening to all requests and monitor their content
but a better way todo so is building a Proxy Server to stand before your webserver/WebService
here is a sample
http://www.codeproject.com/KB/IP/SimpleReverseProxy.aspx