i've never used dot.net, however, it looks suspicious to me that the bytestream of the image is coming before the oauth params/signature in your example. i would expect the oauth params/signature to be in the Authorization header, and the image to be in the body of the POST.
On Tue, Jan 12, 2010 at 10:50 AM, Vikram <vikram.prav...@gmail.com> wrote: > Raffi, > > If you have ever worked with DotNet then please help me. > > What I do currently is as follows: > > - Set the request type to POST. > - ContentType to "multipart/form-data; boundary=" + boundary > (generated); > - Then I add this to the request stream > > L"--"+boundary+L"\r\n"+L"Content-Disposition: form-data; > name=\"image\"; filename=\"test.JPG\" " + L"\r\n"+L"Content-Type: > image/jpg"+L"\r\n\r\n"; > - followed by the bytestream of the image. > - Then I continue to add the OAuth params/signature to the stream > > All the above are URL encoded. > > Twitter responds with a 401 to this request. > > What do I have to correct. > -- Raffi Krikorian Twitter Platform Team http://twitter.com/raffi