I'm not as familiar with the proper line breaks in this area of the HTTP
request as I should be, but I'm going to go out on a limb and say that it's
likely you're doing everything right when you get the 500 Internal Sever
Error. Image uploading  right now is failing pretty frequently, especially
under heavy load, and it takes a few retries before getting an upload to
stick sometimes.

Taylor Singletary
Developer Advocate, Twitter
http://twitter.com/episod


On Mon, May 17, 2010 at 3:37 PM, Rich <[email protected]> wrote:

> Hi
>
> I'm having a problem with update_profile_image over oAuth
>
> I'm sending down
>
> -...@\r\n
> Content-Disposition: form-data; name=\"image\";filename=\"avatar.jpg
> \"\r\nContent-Type: image/jpeg\r\n\r\n
> \r\n...@--\r\n
>
> and in the headers sending
> Content-type: multipart/form-data; boundary=%@
> Content-Length:length of data
>
> I'm signing the request before I add the body data and I get the
> following error back
>
> HTTP status 200
> Invalid Unicode value in one or more parameters
>
> If I user \n instead of \r\n as a line break I get a 500 internal
> server error.
>
> Any ideas?
>

Reply via email to