Quantcast
Channel: Troubleshooting
Viewing all articles
Browse latest Browse all 1814

HTTP.SYS is causing 400 Bad Request when duplicate referer included in the header

$
0
0

Hi,

We have an issue with IIS 7 not processing requests from clients that have multiple (2) referer entries in the header. When called via a Flash component, a second referer is inserted by the PS3 browser.

It seems that IIS itself is not actually receiving the request prior to it being rejected witha 400 Bad Request by http.sys. I have provied this by writing a handler and including it in the site affected. The code never gets reached if multiple referers are included. Instead the 400 is returned.

To prove this I wrote a simple http listener as below. This also exhibits the same behaviour when called with 2 referers. Does anyone have any idea how I can force http.sys to pass the request on without rejecting it for duplicate referers reasons ?

 Thanks

 Neil

To simulate the request, use the Fiddler Request Builder and build a request as below (change 92 to the port you are listening on):

Host: localhost:92
Referer: http://localhost/NetFrontBrowser/
Referer: http://localhost/Flash/

 

var listener =newHttpListener();listener.Prefixes.Add(String.Format("http://+:{0}/", portNumber));

listener.Start();

Console.WriteLine("Listening... <CTRL>+C to exit.");while (true)

{

var context = listener.GetContext();

// process

}


Viewing all articles
Browse latest Browse all 1814

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>