1
Answer

how to capture web server/web service input and output

Paula

Paula

15y
4.3k
1

Hello,
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:
New connection accepted /127.0.0.1:49250
==>GET /WebServer.java HTTP/1.1
<==HTTP/1.0 200 OK
<==WebServer
<==Content-type: text/plain
<==Content-Length: 4045
<==
<== 200: file sent: ./WebServer.java
==>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
==>
I'm also interested in what is being sent and coming back from a web service.
Thanks for your help.
 

Answers (1)