It's probably because it's doing a POST and all POSTS are required to
submit a Content-Length header unless you are using chunked transfer-
encoding. I'm not sure why it would have changed recently, but it was
probably when we fixed the POST code to allow for chunked MIME
multipart requests. Can you verify that adding a Content-Length: 0
solves it?

Cheers,
-Jeff

On Sep 25, 4:23 am, Henrik <[EMAIL PROTECTED]> wrote:
> Hi,
>
> My code for deleting an album suddenly stopped working a couple of
> days ago. I now get an HTTP 411 "Length required", without changing
> anything in my application. Is this something that was deliberately
> introduced in the API (for example is it a new general requirement
> that all requests should set Content-Length) or is it a bug?
> I mean, a delete request has no body so why should it need a Content-
> Length header?
>
> My request looks something like this:
>
> POSThttp://picasaweb.google.com/data/entry/api/user/<user>/albumid/<albumid>/<version>?authkey=<key>
>
> Authorization: GoogleLogin auth=<token>
> X-HTTP-Method-Override: DELETE
>
> I will try adding "Content-Length: 0" and see if it helps, but even if
> it does, should it really be necessary?
>
> Cheers
> /Henrik
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Picasa Web Albums API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Picasa-Data-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to