September 8th, 2010, 02:40 AM
Double User-Agent Header in HTTP Request
I'm having problem with double User-Agent header in my Requset. Using httptrace I got this message "Parsing of request (request ID 0xF70000008000009B) failed due to reason: MismatchDuplicateHeader. Request may not be compliant with HTTP/1.1"
What is the easiest way of handling this on IIS. I would like to remove one of these two User-Agents, and continue with execution. Is it possible?
POST /WCF_myService/myService.svc HTTP/1.1\r\n
User-Agent: SonyEricssonZ530i/R6AC Java/SEMC-Java/2.0 Profile/MIDP-2.0 Configuration/CLDC-1.1 UNTRUSTED/1.0\r\n
User-Agent: Profile/MIDP-1.0 Configuration/CLDC-1.0\r\n
Via: 1.1 proxy-miep-1.telenor.rs (squid/3.1.1)\r\n
Thanks in advance!
September 8th, 2010, 05:10 PM
I don't know if there is anything you can do on the server side. You should probably identify where in the client the extra header is being injected and fix it there.
The man who doesn't read good books has no advantage over the man who can't read them.