Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Question: ClientLogin Model for Blogger to get a token
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
BloggerS  
View profile  
 More options Oct 6, 4:13 am
From: BloggerS <samuelmanaseh2...@gmail.com>
Date: Tue, 6 Oct 2009 01:13:10 -0700 (PDT)
Local: Tues, Oct 6 2009 4:13 am
Subject: Question: ClientLogin Model for Blogger to get a token
Does anyone have a working example of using HTTP via https to log into
Blogger and get an Authorization token for the ClientLogin model?

I am using the notes provided at
http://code.google.com/apis/blogger/docs/2.0/developers_guide_protoco...
but I am getting a 400 error, a badly formed request.

Interestingly enough, when I use a similar structure to unlock captcha
(/accounts/DisplayUnlockCaptcha?service=blogger), I am able to log in
without any errors and unlock captcha.

After unlocking the captcha, I am trying a subsequent login to obtain
the authorization token that I want to use to programatically perform
blogging actions, as required by Google in all subsequent headers.

The format of the string POST request I am sending to obtain the
authorization token is as shown below(actual email, passwords, etc,
have been changed of course.)

POST /accounts/ClientLogin? HTTP/1.1
Host: www.google.com
Content-type: application/x-www-form-urlencoded
Content-Length: 100

accountType=GOOGLE&Email=...@xxx.com&Passwd=xxxx&service=blogger&source=exampleCo-
exampleApp-1

----------------------------------------
Notes:
i)To unlock captcha, one has to Post to /accounts/UnlockCaptcha, even
though the initial request was to /accounts/DisplayUnlockCaptcha
ii)all lines are terminated in a CRLF, and a blank line also
corresponds to a CRLF(there is no --------------, it's just a
separator to make reading this posting easier)
iii)I tried to url encode the email, password, etc, but did not have
any success
iv)I tried to convert all characters from ASCII to uft-8 before url
encoding and then sending them, and did not have success either
v)I specified HTTP/1.1 so that the connection remains persistent. The
first/subsequent POST to unlock captcha succeeds/succeed(e.g. if the
wrong captcha is entered),
However the POST to request an Authorization token generates an HTTP/
1.0 400 Bad Request error.

Any tips will be appreciated.


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google