Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Posting comments and pages republishing.
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
  3 messages - 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 will appear after it is approved by moderators
 
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
 
Gregory  
View profile  
 More options Nov 13 2006, 11:16 am
From: "Gregory" <gregorys...@gmail.com>
Date: Mon, 13 Nov 2006 16:16:15 -0000
Local: Mon, Nov 13 2006 11:16 am
Subject: Posting comments and pages republishing.
Hi,

I'm trying to let my visitors be able to post comments without visiting
anything on beta.blogger.com. I need to do this because I and most of
my visitors are not able to access this domain name from the Internet
connection we're using currently.

However, I can add a line of '72.14.219.190 beta.blogger.com' to
<WinDIR>System32\Drivers\etc\host to access beta.blogger.com directly.
But unfortunately, it's obviously not possible to ask all my visitors
to do so if they feel like to make comments to my blog.

I wrote a simple servlet and deployed it to my server, which hosts my
blog web pages. I made a form on the web pages to collect comments and
the data is POSTed to the servlet I made, which would start another
POST request to https://beta.blogger.com/comment.do, where Blogger Beta
receive comments posting.

I managed to add new comment entries and I did see them on Blogger
Beta's comment page located at
https://beta.blogger.com/comment.g?blogID=xxx&postID=xxx. I can even
read the redirected URL provided by https://beta.blogger.com/comment.do
and I can found the text "Your comment has been saved" from the HTML
codes I get from the redirected URL. but the problem is:

The post don't get rebuilt and the new comment entries won't be
displayed on my blog web pages.

If I POST the new comment directly to
https://beta.blogger.com/comment.do from my web page form, everything
is OK. However, as I said, I couldn't do so as my visitors are not able
to access beta.blogger.com directly.

Does anyone have any information about this problem? I'm very
appreciated for any suggestion or advice.

Thank you.


 
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.
Johan  
View profile  
 More options Nov 13 2006, 1:22 pm
From: "Johan" <j.e.wal...@gmail.com>
Date: Mon, 13 Nov 2006 18:22:18 -0000
Local: Mon, Nov 13 2006 1:22 pm
Subject: Re: Posting comments and pages republishing.
Would you like to tell my how you managed to add new comments? When I
try to make a POST request to the comment.do file with the same params
as the original webpage, I get a response message sayin "Your request
could not be processed. Please try again.". I guess it's the
securityToken field that messes up.

Thanks,

Johan


 
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.
Gregory  
View profile  
 More options Nov 13 2006, 9:05 pm
From: "Gregory" <gregorys...@gmail.com>
Date: Mon, 13 Nov 2006 18:05:18 -0800
Local: Mon, Nov 13 2006 9:05 pm
Subject: Re: Posting comments and pages republishing.
Yes, there's a securityToken field and it's necessary for the POST. If
you open Blogger's original comment page at
https://beta.blogger.com/comment.g?blogID=xxx&postID=xxx, you can find
it and its value is like "v9_v9qDtWj71ChM_jjf8r5_49xw=:1163469412333".
It looks like a base64 encrypted string and a timestamp.

Whatever it is, if you add this field to your form, the new comment
entry should be POSTed correctly. Note that you may need to get this
token from the page whose post id is the same with the post you want to
comment.

My servlet would do this job automatically. Everytime before I make a
POST, I would fetch the comment.g page and parse this token, and then
submit it with all other params to comment.do.

I also tried to submit a comment from a HTML page from my local driver
with a copy-paste field of securityToken from comment.g and it works. I
think it's much easier for a test.


 
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 »