Hi All,
I have an unusual problem with httpListener (i think)
I've written a UPnP Media server and to extend it's capabilities i've written UPnP Relays that extend the primary service to other remote networks (it basically just proxies the requests back to the main server, to fool the client into bellieving its locally hosted content)
With audio it works beautifully, but video simply refused to stream, i've finally found the reason
Look at these 2 sets of headers, One is what the local network see's, the other is Remote
Local connections:
TransferMode.DLNA.ORG: Streaming
Accept-Ranges: bytes
Content-Length: 700631040
Content-Type: video/x-msvideo
Date: Wed, 28 Nov 2012 16:43:55 GMT
Server: Microsoft-HTTPAPI/2.0
Remote Connections:
TransferMode.DLNA.ORG: Streaming
Accept-Ranges: none
Content-Length: 700631040
Content-Type: video/x-msvideo
Date: Wed, 28 Nov 2012 16:44:58 GMT
Server: Microsoft-HTTPAPI/2.0
As you can see, the Accept-Ranges header is being changed by something and i cant figure out what's changing it and why
If somebody can confirm that its a limitation of the HttpListener Class then i'll write my own http server class, but why reinvent the wheel when you dont have to?
For reference, heres the code making the requests (only gathers the headers)
Dim req As HttpWebRequest = HttpWebRequest.Create(url)
Dim res = req.GetResponse
For Each h As String In res.Headers
Console.WriteLine(h & ": " & res.Headers(h))
Next
All Advice/Help appreciated :-)
Chris