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

    Join Date
    Sep 2010
    Posts
    1
    Rep Power
    0

    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
    X-Forwarded-For: 172.30.4.216\r\n
    Cache-Control: max-age=259200\r\n
    Connection: keep-alive\r\n
    \r\n

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

    Join Date
    Jun 2003
    Posts
    14,453
    Rep Power
    4539
    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
    ======
    Bartender to Rene Descartes "have another beer?" Descartes: "I think not" and he vanished.
    --Alfred Bester

IMN logo majestic logo threadwatch logo seochat tools logo