So more info that might help someone answer my questions...
<FORM action="/sso?cmd=LOGIN" method="POST" name="login">
<INPUT TYPE="hidden" NAME="auth_mode" VALUE="basic">
<INPUT maxLength=32 name=user size=13 value="">
<INPUT TYPE="button" onClick="formSubmit();" VALUE="Login">
</FORM>
function formSubmit() {
document.login.user.value = document.login.user.value.toUpperCase();
document.login.submit();
}
Page info:
Server: Apache
WWW-Authenticate: Basic realm="SCRealm"
Pragma: No-cache
Cache-Control: no-cache
Keep-Alive: timeout=60, max=95
Connection: Keep-Alive
Transfer-Encoding: chunked
Content-Type: text/html
-----Original Message-----
From: Jeffrey Porter [mailto:[EMAIL PROTECTED]
Sent: 03 March 2006 10:57
To: HttpClient User Discussion
Subject: RE: HTTPS connection example
Hi Roland,
Thanks for the response.
I've made some progress, but do have a couple of questions.
May be you can help? (or anyone else)
....
I've successfully used the "GetMethod" class to connect to the URL.
The "authget.getResponseBody()" contains the page with the login form.
The response code is 200 OK.
I now want to use a "PostMethod" to send the login details back.
The "PostMethod" contructor takes a URL, what is this URL for? Is it the
same that used for the "GetMethod"?
The examples show...
"authpost.setRequestBody(new NameValuePair[] {action, url, userid,
password});"
What is the 'action' & 'url' that is passed in used for?
Do I just specify the same URL as before?
Do I need to pass in an 'action'? and how do I know what it will be?
....
Ok, that that was more like 6 questions, than a couple. :-)
Jeff
-----Original Message-----
From: Roland Weber [mailto:[EMAIL PROTECTED]
Sent: 03 March 2006 10:32
To: HttpClient User Discussion
Subject: Re: HTTPS connection example
Hello Jeff,
is this decent enough?
http://jakarta.apache.org/commons/httpclient/index.html
http://jakarta.apache.org/commons/httpclient/sslguide.html
http://jakarta.apache.org/commons/httpclient/authentication.html
You probably don't need to know the authentication mechanism.
But you do need to know whether there is one.
cheers,
Roland
"Jeffrey Porter" <[EMAIL PROTECTED]>
03.03.2006 10:25
Please respond to
"HttpClient User Discussion"
To
<[email protected]>
cc
Subject
HTTPS connection example
Hello all,
I'm new to HTTP-client, so please be gentle :-)
I'm trying to make a connection to a website
(https://web.xxxx.com/AS/Journal/).
How do I tell the authentication mechanism it uses? Do I need to know?
Is there a simple example/tutorial on HTTPS connections? (other than the
FormLoginDemo.java)
Is there a decent website to start learning from?
Thanks
Jeff
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]