Did you sign to the
https://api.twitter.com/1/account/verify_credentials.json to get the
credentials?
The signed url must be the same as X-Auth-Service-Provider.

Andy Matsubara

On Sat, Jul 24, 2010 at 10:57 PM, globaljobber
<gerardn...@exciteinternet.co.uk> wrote:
> Hi,
>
> Been on this for a week. Am having trouble uploading image to Twitpic
> with Oauth. I get user to authenticate ok, receive access_token, etc.,
> and then try to make a httpwebrequest POST after generating X-Verify-
> Credentials-Authorization string.
>
> I am always getting a 401 Unauthorized Access response. Has anyone
> anywhere on the planet done this with ASP.NET yet who could help?
> Seems no one has.
>
> Here is part of the post that I generate, including headers:
>
>
> --76a18be812b446b599adabd8c9b6fee0
> Content-Disposition: form-data; name="X-Auth-Service-Provider"
>
> https://api.twitter.com/1/account/verify_credentials.json
> --76a18be812b446b599adabd8c9b6fee0
> Content-Disposition: form-data; name="X-Verify-Credentials-
> Authorization"
>
> OAuth realm="http://
> api.twitter.com/",oauth_consumer_key="9cjtDDCxlOYSSJqyp7XKzA",oauth_nonce="6C850587",oauth_signature_method="HMAC-
> SHA1",oauth_timestamp="1233928528",oauth_token="15321156-7q4tTvSwJ9oB6iWZh7DvRjkn60eKTc1T4VRkNl4",oauth_version="1.0",oauth_signature="9FJK45EJtW4EfpnJla6S
> %2BGIqvuE%3D"
> --76a18be812b446b599adabd8c9b6fee0
> Content-Disposition: form-data; name="message"
>
> Test image upload
> --76a18be812b446b599adabd8c9b6fee0
> Content-Disposition: form-data; name="key"
>
> 97bfc758472981ds9630232def4eea82
> --76a18be812b446b599adabd8c9b6fee0
> Content-Disposition: file; name="media"; filename="DSC_222222.jpg"
> Content-Type: image/jpeg
>
>
> Much appreciate any help from someone.
> Thanks
> Gerard

Reply via email to