laproduction.blogg.se

Wireshark http requests sent
Wireshark http requests sent







wireshark http requests sent wireshark http requests sent

The "result" variable will always contain string.Empty, because the contentLength of the response is -1. string wsbLink = "http: ///conf/meta?i=1112994453&c=2343&m=was&u=/w_ccbn.xsl&date_ticker=KCI" HttpWebRequest r = (HttpWebRequest)WebRequest.Create(wsbLink) r.Accept = "*/* " r.UserAgent="Windows-Media-Player/9." WebResponse resp = r.GetResponse() StreamReader sr = new StreamReader(resp.GetResponseStream()) string result = sr.ReadToEnd() The problem arises when I try to get the contents of this file from in my c# code: Here is my code the Accept and UserAgent header values were copied from the WireShark analyzer. See the image of these packets in my wireshark here: I know this data is contained in the responses, because I have seen it using WireShark analyzer.

wireshark http requests sent

When I click this link in my browser, it sets off four request-response cycles of HTTP GET -> HTTP1.1 OK.Įach of the GET requests are slightly different, using a different user agent or accept header.Įach time, they generate an OK response with this data in it: LifeCell Acquisition Update Call LifeCell Acquisition Update Call Usually a steaming media is played by clicking on a standard http link, such as this one: I have been working with streaming media / rtsp for the first time.









Wireshark http requests sent