Archived Forum Post

Index of archived forum posts

Question:

HTTP Error 400

Jun 29 '12 at 14:40

Can you please explain this error. I am not sure how the request is mutating in to what is in the error. Maybe it is my vb6. I have noticed that when subA uses a .put and then subB uses a .head request. subB will allways fail the first try and second .synchronousrequest will then succeed.

-Erik

HTTP/1.1 400 Bad request syntax ('\xff\xd8\xff\xe0\x00\x10JFIF\x00\x01\x01\x00\x00\x01\x00\x01\x00\x00\xff\xfe\x00;CREATOR: gd-jpeg v1.0 (using IJG JPEG v62), quality = 60')
ChilkatLog:
  SynchronousRequest:
    DllDate: Jun  4 2012
    UnlockPrefix: INSURAHttp
    Username: MATHIS:erik
    Architecture: Little Endian; 32-bit
    Language: ActiveX
    domain: storage101.dfw1.clouddrive.com
    port: 443
    ssl: 1
    RequestData:
      HttpVersion: 1.1
      Verb: PUT
      Path: /v1/MossoCloudFS_56e9ae2f-a3f9-4d5b-a211-406d4b093bad/eCerts-Archive-1008-2005-10/328522.pdf
      Charset: utf-8
      SendCharset: 0
      MimeHeader: Host: storage.clouddrive.com
X-Auth-Token: 2ccxxa5fc-xxxxx-4b51-xxx-fbd57bx811d2c
Content-Length: 19748
Content-Type: application/pdf
ETag: BB07ECF4166D52E09CB8CAF19E82FC09
X-Object-Meta-UsageID: 0
X-Object-Meta-ArchiveID: 328522
    --RequestData
    ReadTimeout: 20
    ConnectTimeout: 10
    httpConnect:
      hostname: storage101.dfw1.clouddrive.com
      port: 443
      ssl: 1
      Should already be connected to the HTTP server...
      Connected
    --httpConnect
    connectTime1: Elapsed time: 0 millisec
    sendRequestGetResponse_1:
      Not auto-adding cookies.
      sendRequestTime: Elapsed time: 125 millisec
      ---- Reading HTTP Response ----
      ConnectionRespHdr: close
      No content-length header field.
      No transfer-encoding header field.
      sslContentLength: 0
      extraLen: 352
      Finished reading response where content-length was unknown.
      Closing HTTP connection because of Connection:close header. (or proxy-connection:close header)
      readResponseTime: Elapsed time: 62 millisec
      responseStatus: 400
      response: <head>
<title>Error response</title>
</head>
<body>

Error response

Error code 400.

Message: Bad request syntax ('\xff\xd8\xff\xe0\x00\x10JFIF\x00\x01\x01\x00\x00\x01\x00\x01\x00\x00\xff\xfe\x00;CREATOR: gd-jpeg v1.0 (using IJG JPEG v62), quality = 60').

Error code explanation: 400 = Bad request syntax or unsupported method. </body>


Answer

I think this problem was recently fixed. Try this new build: http://www.chilkatsoft.com/preRelease/ChilkatHttp.zip