2 Replies Latest reply: Apr 24, 2012 4:51 AM by Colin'tHart RSS

    Getting duplicate Content-Length header for mod_plsql requests (only 409?)

    Colin'tHart
      Hi,

      As the subject says, see this output from wget request:

      -----

      Resolving www.XXX.com... XX.XX.XX.XX
      Connecting to www.XXX.com|XX.XX.XX.XX|:80... connected.
      HTTP request sent, awaiting response...
      HTTP/1.1 401 Authorization Required
      Date: Fri, 10 Feb 2012 12:00:36 GMT
      Server: Oracle-Application-Server-11g
      WWW-Authenticate: Basic realm="XXX"
      Content-Length: 322
      Keep-Alive: timeout=5, max=100
      Connection: Keep-Alive
      Content-Type: text/html; charset=iso-8859-1
      Reusing existing connection to www.XXX.com:80.
      HTTP request sent, awaiting response...
      HTTP/1.1 409 Conflict
      Date: Fri, 10 Feb 2012 12:00:36 GMT
      Server: Oracle-Application-Server-11g
      Content-Length: 63
      Set-Cookie: SESSION_GUID=B89B35895C4F5C23E0436505010A41CC
      Cache-Control: max-age=0
      Expires: Fri, 10 Feb 2012 12:00:36 GMT
      Vary: Accept-Encoding
      Content-Length: 63
      Keep-Alive: timeout=5, max=99
      Connection: Keep-Alive
      Content-Type: text/plain
      Content-Language: en
      2012-02-10 13:06:39 ERROR 409: Conflict.

      -----

      This works fine in our development environment, as follows (again, from wget):

      -----

      Resolving www.YYY.com... YY.YY.YY.YY
      Connecting to www.YYY.com|YY.YY.YY.YY|:80... connected.
      HTTP request sent, awaiting response...
      HTTP/1.1 401 Authorization Required
      Date: Fri, 10 Feb 2012 12:44:30 GMT
      Server: Oracle-Application-Server-10g/10.1.2.0.0 Oracle-HTTP-Server
      Cache-Control: max-age=0
      Expires: Fri, 10 Feb 2012 12:44:30 GMT
      WWW-Authenticate: Basic realm="YYY"
      Connection: close
      Content-Type: text/html; charset=iso-8859-1
      Connecting to www.YYY.com|YY.YY.YY.YY|:80... connected.
      HTTP request sent, awaiting response...
      HTTP/1.1 409 Conflict
      Date: Fri, 10 Feb 2012 12:44:31 GMT
      Server: Oracle-Application-Server-10g/10.1.2.0.0 Oracle-HTTP-Server
      Cache-Control: max-age=0
      Expires: Fri, 10 Feb 2012 12:44:31 GMT
      X-DB-Content-length: 63
      Set-Cookie: SESSION_GUID=8DC93E8C5EC3476EBFE31EA952AB0FC0
      Connection: close
      Content-Type: text/plain
      2012-02-10 13:44:30 ERROR 409: Conflict.

      -----

      As you can see, different version of "Apache": the newer one returns the header "Content-Length" twice, the older returns "X-DB-Content-length".

      We're using 409 to indicate Conflicting data for the webservice.

      Requests that result in 200 work fine:

      -----

      Resolving www.XXX.com... XX.XX.XX.XX
      Connecting to www.XXX.com|XX.XX.XX.XX|:80... connected.
      HTTP request sent, awaiting response...
      HTTP/1.1 401 Authorization Required
      Date: Fri, 10 Feb 2012 12:42:25 GMT
      Server: Oracle-Application-Server-11g
      WWW-Authenticate: Basic realm="XXX"
      Content-Length: 332
      Keep-Alive: timeout=5, max=100
      Connection: Keep-Alive
      Content-Type: text/html; charset=iso-8859-1
      Reusing existing connection to www.XXX.com:80.
      HTTP request sent, awaiting response...
      HTTP/1.1 200 OK
      Date: Fri, 10 Feb 2012 12:42:25 GMT
      Server: Oracle-Application-Server-11g
      Content-Length: 2920
      Set-Cookie: SESSION_GUID=B89B357BD6755C1BE0436505010A0444
      Cache-Control: max-age=0
      Expires: Fri, 10 Feb 2012 12:42:25 GMT
      Vary: Accept-Encoding
      Keep-Alive: timeout=5, max=99
      Connection: Keep-Alive
      Content-Type: application/json; charset=utf-8
      Content-Language: en
      Length: 2920 (2.9K) [application/json]
      Saving to: `XXX'

      -----

      Any ideas?

      If you need more information, just ask!

      Thanks & cheers,

      Colin