0

My code has the following:

Dim reader = New XmlTextReader(Request.InputStream)

I would like to export the the XML from Request.InputStream

I have log utility which will write to a test file but when i add Request.InputStream.Length.ToString to the logs it comes up as 0

Im pretty sure the 3rd party is passing in XML but i need to prove that its broken in someway. Therefore I need to see whats being passed into the page.

PriceCheaperton
  • 5,071
  • 17
  • 52
  • 94
  • Use a sniffer like fiddler or wireshark to determine if you actually received data from website. – jdweng Mar 15 '16 at 14:32
  • Its https traffic, so i cant :( – PriceCheaperton Mar 15 '16 at 15:04
  • That is exactly what the sniffer's capture. – jdweng Mar 15 '16 at 16:33
  • its encrypted if its https – PriceCheaperton Mar 15 '16 at 16:37
  • https headers cannot be encrypted, but the rest of the message can be encrypted. You should be able to see the ascii headers with a sniffer. The message portion of the htts is probably zip format and you need to unzip. But start with using a sniffer. – jdweng Mar 15 '16 at 23:37
  • would i have to use fiddler on the client or on the server its hosted? – PriceCheaperton Mar 17 '16 at 13:29
  • I usually use it on client. It will automatically unzip body and in header indicate that it was GZIP. Your solution may be to use GZIP to unpack body. See posting : http://stackoverflow.com/questions/4567313/uncompressing-gzip-response-from-webclient – jdweng Mar 17 '16 at 14:16

0 Answers0