This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Sockets and Internet Protocols and the fly likes http post Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Reply locked New topic

http post

Hemal Mahagederawatte

Joined: Dec 17, 2008
Posts: 16
Hi everybody,

I want to send username and password to and get authenticated response.
The authentication page is at which has the following form

So i wrote the following code

But i don't get authenticated. ( The return is the html page with link to sign in and not the page you get if you had sign in).

Can anybody help me please.
Thanks in advanced.
Paul Clapham

Joined: Oct 14, 2005
Posts: 18541

That was your real user ID and password you posted there, wasn't it? It's a really bad idea to post your password on a public forum. I edited it out of your post for you.

As for your question, why are you trying to have your program connect and authenticate to MyOpenID? What do you hope to achieve once you have done that?
Hemal Mahagederawatte

Joined: Dec 17, 2008
Posts: 16
Ops.. I forgot to edit it. Thank you.

Well my requirement is like this,

create a java class which can send openid and the password off the user along with a authnRequest message and this java class must get the authnResponse message (which has the openid token) from the openid provider in return. Then this token is wrapped and send to a STS.
Rob Spoor

Joined: Oct 27, 2005
Posts: 19651

Please UseOneThreadPerQuestion. This is the same problem as this one. Closing this thread.

How To Ask Questions How To Answer Questions
I agree. Here's the link:
subject: http post
Similar Threads
unable to get response from payment website
Using JSTL Data Displayed In Browser Is Getting Fixed To 24576 Bytes(24 KB)
Communicate with the server without a browser.
error while submitting an http web request
How to POST data to a form