File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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: 19973

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: 20269

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
jQuery in Action, 3rd edition