1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2010
    Rep Power

    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
    Content-Language: en-US\r\n
    Content-Type: text/xml\r\n
    SOAPAction: "(myUrl)"\r\n
    Content-Length: 398\r\n
    Host: server.myService.com\r\n
    Via: 1.1 proxy-miep-1.telenor.rs (squid/3.1.1)\r\n
    Cache-Control: max-age=259200\r\n
    Connection: keep-alive\r\n

    Thanks in advance!
  2. #2
  3. No Profile Picture
    Grumpier old Moderator
    Devshed Supreme Being (6500+ posts)

    Join Date
    Jun 2003
    Rep Power
    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.
    Doug G
    I've never been able to appreciate the sublime arrogance of folks who feel they were put on earth just to save other folks from themselves .." - Donald Hamilton

IMN logo majestic logo threadwatch logo seochat tools logo