Content-Length Header Already Present

adamcadamc Registered Users Posts: 25 Big grins
Hello,
I am trying to post some images using the JSON API. I have double checked all my headers, and they seem fine and in order wrt the docs, but every time I send the Httpput request (using Apache Http Client), I get a

07-26 04:58:52.273: ERROR/Smugbot(349): Caused by: org.apache.http.ProtocolException: Content-Length header already present

Has anyone else ever seen this?

Comments

  • adamcadamc Registered Users Posts: 25 Big grins
    edited July 26, 2010
    Forgot to mention - if I remove the content-length header, I get the smugmug home page returned instead of the expected response.

    adamc wrote: »
    Hello,
    I am trying to post some images using the JSON API. I have double checked all my headers, and they seem fine and in order wrt the docs, but every time I send the Httpput request (using Apache Http Client), I get a

    07-26 04:58:52.273: ERROR/Smugbot(349): Caused by: org.apache.http.ProtocolException: Content-Length header already present

    Has anyone else ever seen this?
  • adamcadamc Registered Users Posts: 25 Big grins
    edited July 26, 2010
    ok - I found one problem. The client was also adding the content length, so I fixed that. However, now I have everything seemingly correct, but I only get the smugmug homepage returned (same as my second post). Is there any way to troubleshoot this?
Sign In or Register to comment.