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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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: 18541
    
    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: 19654
    
  18

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
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