aspose file tools*
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
Author

http post

Hemal Mahagederawatte
Greenhorn

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

I want to send username and password to www.myopenid.com and get authenticated response.
The authentication page is at https://www.myopenid.com/signin_password which has the following form



So i wrote the following code



But i don't get authenticated. ( The return is the html page https://www.myopenid.com/ 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
Bartender

Joined: Oct 14, 2005
Posts: 18674
    
    8

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
Greenhorn

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
Sheriff

Joined: Oct 27, 2005
Posts: 19723
    
  20

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


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: http post