27 messages in com.googlegroups.google-picasa-data-apiRe: Problem posting images
FromSent OnAttachments
Henrik17 Apr 2008 09:22 
Jeff Fisher (Google)17 Apr 2008 09:32 
Henrik17 Apr 2008 10:33 
Henrik17 Apr 2008 23:48 
Sven18 Apr 2008 09:16 
Henrik29 Apr 2008 02:07 
Sven29 Apr 2008 09:12 
Henrik30 Apr 2008 02:03 
Jeff Fisher (Google)06 May 2008 09:56 
Henrik06 May 2008 10:34 
Henrik06 May 2008 11:13 
Sven06 May 2008 11:30 
Henrik Hall06 May 2008 12:01 
Sven06 May 2008 12:21 
Henrik06 May 2008 12:50 
Sven06 May 2008 12:52 
Henrik06 May 2008 13:04 
Henrik07 May 2008 03:39 
Henrik07 May 2008 05:54 
Jeff Fisher (Google)07 May 2008 10:53 
Sven07 May 2008 11:27 
Henrik07 May 2008 13:33 
Henrik07 May 2008 13:39 
Detlev07 May 2008 14:19 
Detlev07 May 2008 14:24 
Henrik08 May 2008 00:42 
Jeff Fisher08 May 2008 10:18 
Subject:Re: Problem posting images
From:Henrik (henr@gmail.com)
Date:04/17/2008 11:48:31 PM
List:com.googlegroups.google-picasa-data-api

Hi again,

I tried the exact same thing first thing this morning and now it works. It seems to me that the server was in fact experiencing some problems yesterday, or what do you think? Come to think of it, I noticed that it was kind of slow using PicasaWeb from a normal web browser yesterday as well, maybe that's related?

Of course, here's the data: I've excluded the binary data and the auth token. I've also put markers around the body data to clearly indicate line feeds etc.

POSThttp://picasaweb.google.com/data/feed/api/user/default/albumid/514306...

Headers: Content-Type: multipart/related; boundary="END_OF_PART" Content-Length: 3618 MIME-Version: 1.0 Authorization: GoogleLogin auth=<token>

Body: <start of body>Media multipart posting --END_OF_PART Content-Type: application/atom+xml

<entry xmlns='http://www.w3.org/2005/Atom'> <title>test.jpg</title> <summary>test pic</summary> <category scheme="http://schemas.google.com/g/2005#kind" term="http://schemas.google.com/photos/2007#photo"/> </entry> --END_OF_PART Content-Type: image/jpeg

<binary data>--END_OF_PART--<end of body>

I'm wondering if I've somehow got the Content-Length parameter incorrect (it should correspond to the complete number of bytes in the body, including the part separators and the main body, right?). But could that cause the connection to hang?

BR /Henrik

On 17 Apr, 18:32, "Jeff Fisher (Google)" <api.@google.com> wrote:

Hi Henrik,

Can you give an example of a POST you are sending to the API that causes it to hang? Please snip out the binary file contents and authentication tokens.

Cheers, -Jeff

On Apr 17, 9:23 am, Henrik <henr@gmail.com> wrote:

Hi,

I have run across a problem with posting images to PicasaWeb. Whenever I try to make a POST request with content-type: multipart/related (according to the example
athttp://code.google.com/apis/picasaweb/developers_guide_protocol.html#...), the connection just seems to hang. The problem appears to be related to the Google server because posting the same type of requests to other sites work just fine. If I remove the content-type header, the connection doesn't hang but instead I get a "400 Bad request" response. I have tried different "boundary" values but it doesn't help. As soon as there is _any_ content-type header with a given boundary, it hangs.

Does anyone have any ideas what I might be doing wrong, or is the server just experiencing some temporary problems?