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 Testing and the fly likes Problem with HttpUnit Login to a SSO page 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 » Engineering » Testing
Bookmark "Problem with HttpUnit Login to a SSO page" Watch "Problem with HttpUnit Login to a SSO page" New topic
Author

Problem with HttpUnit Login to a SSO page

Sayantan Bandyopadhyay
Greenhorn

Joined: Aug 26, 2013
Posts: 1
Please have a look at my code:


WebConversation webConversation = new WebConversation();
try {

WebResponse response = webConversation.getResponse("https://www.advisorcompass.com/");//the first url

HttpUnitOptions.setLoggingHttpHeaders(true);

ClientProperties cltprops = webConversation.getClientProperties();
cltprops.setUserAgent("Mozilla/5.0 (Windows NT 6.1; WOW64; rv:5.0) Gecko/20100101 Firefox/5.0");
cltprops.setAcceptGzip(true);
cltprops.setAutoRedirect(true);
cltprops.setAcceptCookies(true);
cltprops.setAutoRefresh( true );
WebForm form = response.getFormWithName("logonFormValidate");
//WebForm form = response.getFormWithName("_DominoForm");
form.setParameter("username","sxbandy" );
form.setParameter("password", "xxxxxx");

//form.setParameter("%%ModDate", "0000000000000000");
//submit the form request
SubmitButton sb=form.getSubmitButton("btnSubmit");

try{
sb.click();
System.out.println(webConversation.getCurrentPage());
}

catch(Exception e)
{e.printStackTrace();

}

}
catch(Exception e)
{
}


I wanted to get the HTML of the page after login but I get the login page itself:

Below is the output I get.Please help me .


Connecting to ssoiextra.ext.ampf.com
Sending:: POST /SSO_Intra/un_logonForward.do?ssolang=en_US&ssobrand=SSOi&TARGET=%24SM%24HTTPS%3A%2F%2Fssoiextra.ext.ampf.com%2FriskAuth%2FadvisorPostAuth.jsp%3FappId%3Dadvisor&TYPE=33554432&REALMOID=06-d3ab3ba8-3769-4b7f-bc4c-37983fef16f5&GUID&SMAUTHREASON=0&METHOD=GET&SMAGENTNAME=uss1uws018ampxb_si02_webagent&TARGET=%24%24SM%24%24HTTPS%24%3A%24%2F%24%2Fssoiextra%24.ext%24.ampf%24.com%24%2FSSO_Intra%24%2Fauth_mfaSecureResultsampflogin%24.do%24%3FAppURL%24%3DHTTPS%24%24%24%3A%24%24%24%2F%24%24%24%2Fwww%24%24%24.advisorcompass%24%24%24.com%24%24%24%2Fweb%24%24%24%2Fadvisorcompass%24%24%24%2F
Sending:: User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:5.0) Gecko/20100101 Firefox/5.0
Sending:: Cookie: SSOi06_JSESSIONID=0000wQlxL3evadC5B69bY9nML3x:14fat65sa
Sending:: Accept-Encoding: gzip
Sending:: Referer: https://ssoiextra.ext.ampf.com/SSO_Intra/un_logon.do?ssolang=en_US&ssobrand=SSOi&FA=TWO&appId=advisor&TYPE=33554432&REALMOID=06-c6360a0e-dd5e-4c21-b4dc-b88c6e7089f1&GUID=&SMAUTHREASON=0&METHOD=GET&SMAGENTNAME=uss1uws018ampxb_si02_webagent&TARGET=$SM$HTTPS%3a%2f%2fssoiextra%2eext%2eampf%2ecom%2friskAuth%2fadvisorPostAuth%2ejsp%3fappId%3dadvisor%26TYPE%3d33554432%26REALMOID%3d06-d3ab3ba8-3769-4b7f-bc4c-37983fef16f5%26GUID%3d%26SMAUTHREASON%3d0%26METHOD%3dGET%26SMAGENTNAME%3duss1uws018ampxb_si02_webagent%26TARGET%3d$$SM$$HTTPS$%3a$%2f$%2fssoiextra$%2eext$%2eampf$%2ecom$%2fSSO_Intra$%2fauth_mfaSecureResultsampflogin$%2edo$%3fAppURL$%3dHTTPS$$$%3a$$$%2f$$$%2fwww$$$%2eadvisorcompass$$$%2ecom$$$%2fweb$$$%2fadvisorcompass$$$%2f
Sending:: Content-Type: application/x-www-form-urlencoded

Received from https://ssoiextra.ext.ampf.com/SSO_Intra/un_logonForward.do?ssolang=en_US&ssobrand=SSOi&TARGET=%24SM%24HTTPS%3A%2F%2Fssoiextra.ext.ampf.com%2FriskAuth%2FadvisorPostAuth.jsp%3FappId%3Dadvisor&TYPE=33554432&REALMOID=06-d3ab3ba8-3769-4b7f-bc4c-37983fef16f5&GUID&SMAUTHREASON=0&METHOD=GET&SMAGENTNAME=uss1uws018ampxb_si02_webagent&TARGET=%24%24SM%24%24HTTPS%24%3A%24%2F%24%2Fssoiextra%24.ext%24.ampf%24.com%24%2FSSO_Intra%24%2Fauth_mfaSecureResultsampflogin%24.do%24%3FAppURL%24%3DHTTPS%24%24%24%3A%24%24%24%2F%24%24%24%2Fwww%24%24%24.advisorcompass%24%24%24.com%24%24%24%2Fweb%24%24%24%2Fadvisorcompass%24%24%24%2F
Header:: HTTP/1.1 200 OK
Header:: Date: Mon, 26 Aug 2013 22:11:37 GMT
Header:: Server: IBM_HTTP_Server
Header:: Cache-Control: no-cache
Header:: Pragma: no-cache
Header:: Expires: Thu, 01 Jan 1970 00:00:00 GMT
Header:: Content-Length: 2286
Header:: Keep-Alive: timeout=15, max=93
Header:: Connection: Keep-Alive
Header:: Content-Type: text/html; charset=ISO-8859-1
Header:: Content-Language: en-US

Connecting to ssoiextra.ext.ampf.com
Sending:: POST /riskAuth/bharosaSMLogin.jsp
Sending:: User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:5.0) Gecko/20100101 Firefox/5.0
Sending:: Cookie: SSOi06_JSESSIONID=0000wQlxL3evadC5B69bY9nML3x:14fat65sa
Sending:: Accept-Encoding: gzip
Sending:: Referer: https://ssoiextra.ext.ampf.com/SSO_Intra/un_logonForward.do?ssolang=en_US&ssobrand=SSOi&TARGET=%24SM%24HTTPS%3A%2F%2Fssoiextra.ext.ampf.com%2FriskAuth%2FadvisorPostAuth.jsp%3FappId%3Dadvisor&TYPE=33554432&REALMOID=06-d3ab3ba8-3769-4b7f-bc4c-37983fef16f5&GUID&SMAUTHREASON=0&METHOD=GET&SMAGENTNAME=uss1uws018ampxb_si02_webagent&TARGET=%24%24SM%24%24HTTPS%24%3A%24%2F%24%2Fssoiextra%24.ext%24.ampf%24.com%24%2FSSO_Intra%24%2Fauth_mfaSecureResultsampflogin%24.do%24%3FAppURL%24%3DHTTPS%24%24%24%3A%24%24%24%2F%24%24%24%2Fwww%24%24%24.advisorcompass%24%24%24.com%24%24%24%2Fweb%24%24%24%2Fadvisorcompass%24%24%24%2F
Sending:: Content-Type: application/x-www-form-urlencoded

Received from https://ssoiextra.ext.ampf.com/riskAuth/bharosaSMLogin.jsp
Header:: HTTP/1.1 302 Found
Header:: Date: Mon, 26 Aug 2013 22:11:38 GMT
Header:: Server: IBM_HTTP_Server
Header:: Pragma: no-cache
Header:: Expires: Thu, 01 Jan 1970 00:00:00 GMT
Header:: Location: https://ssoiextra.ext.ampf.com/riskAuth/loginJumpPage.jsp
Header:: Content-Length: 0
Header:: Set-Cookie: SSOiMFA06_JSESSIONID=0000wcDyymUYwFa67RR6sqgTMXy:14fauaqfb; Path=/
Header:: Set-Cookie: BHAROSA_APP_NAME=advisor; Path=/; Domain=.ampf.com
Header:: Set-Cookie: BHAROSA_TARGET5=JFNNJEhUVFBTOi8vc3NvaWV4dHJhLmV4dC5hbXBmLmNvbS9yaXNrQXV0aC9hZHZpc29yUG9zdEF1dGguanNwP2FwcElkPWFkdmlzb3ImVFlQRT0zMzU1NDQzMiZSRUFMTU9JRD0wNi1kM2FiM2JhOC0zNzY5LTRiN2YtYmM0Yy0zNzk4M2ZlZjE2ZjUmR1VJRD0mU01BVVRIUkVBU09OPTAmTUVUSE9EPUdFVCZTTUFHRU5UTkFNRT11c3MxdXdzMDE4YW1weGJfc2kwMl93ZWJhZ2VudCZUQVJHRVQ9JCRTTSQkSFRUUFMkOiQvJC9zc29pZXh0cmEkLmV4dCQuYW1wZiQuY29tJC9TU09fSW50cmEkL2F1dGhfbWZhU2VjdXJlUmVzdWx0c2FtcGZsb2dpbiQuZG8kP0FwcFVSTCQ9SFRUUFMkJCQ6JCQkLyQkJC93d3ckJCQuYWR2aXNvcmNvbXBhc3MkJCQuY29tJCQkL3dlYiQkJC9hZHZpc29yY29tcGFzcyQkJC8=; Path=/; Domain=.ampf.com
Header:: Set-Cookie: AUTHRESPONSE=0; Path=/; Domain=.ampf.com
Header:: Set-Cookie: bharosaenrolled=false; Path=/; Domain=.ampf.com
Header:: Cache-Control: no-store, no-cache=set-cookie
Header:: Keep-Alive: timeout=15, max=92
Header:: Connection: Keep-Alive
Header:: Content-Type: text/html
Header:: Content-Language: en-US

Connecting to ssoiextra.ext.ampf.com
Sending:: GET https://ssoiextra.ext.ampf.com/riskAuth/loginJumpPage.jsp
Sending:: User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:5.0) Gecko/20100101 Firefox/5.0
Sending:: Cookie: SSOi06_JSESSIONID=0000wQlxL3evadC5B69bY9nML3x:14fat65sa; SSOiMFA06_JSESSIONID=0000wcDyymUYwFa67RR6sqgTMXy:14fauaqfb
Sending:: Accept-Encoding: gzip
Sending:: Referer: https://ssoiextra.ext.ampf.com/SSO_Intra/un_logonForward.do?ssolang=en_US&ssobrand=SSOi&TARGET=%24SM%24HTTPS%3A%2F%2Fssoiextra.ext.ampf.com%2FriskAuth%2FadvisorPostAuth.jsp%3FappId%3Dadvisor&TYPE=33554432&REALMOID=06-d3ab3ba8-3769-4b7f-bc4c-37983fef16f5&GUID&SMAUTHREASON=0&METHOD=GET&SMAGENTNAME=uss1uws018ampxb_si02_webagent&TARGET=%24%24SM%24%24HTTPS%24%3A%24%2F%24%2Fssoiextra%24.ext%24.ampf%24.com%24%2FSSO_Intra%24%2Fauth_mfaSecureResultsampflogin%24.do%24%3FAppURL%24%3DHTTPS%24%24%24%3A%24%24%24%2F%24%24%24%2Fwww%24%24%24.advisorcompass%24%24%24.com%24%24%24%2Fweb%24%24%24%2Fadvisorcompass%24%24%24%2F

Received from https://ssoiextra.ext.ampf.com/riskAuth/loginJumpPage.jsp
Header:: HTTP/1.1 200 OK
Header:: Date: Mon, 26 Aug 2013 22:11:39 GMT
Header:: Server: IBM_HTTP_Server
Header:: Keep-Alive: timeout=15, max=91
Header:: Connection: Keep-Alive
Header:: Transfer-Encoding: chunked
Header:: Content-Type: text/html; charset=UTF-8
Header:: Content-Language: en-US

Connecting to ssoiextra.ext.ampf.com
Sending:: GET /riskAuth/login.do?jump=false
Sending:: User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:5.0) Gecko/20100101 Firefox/5.0
Sending:: Cookie: SSOi06_JSESSIONID=0000wQlxL3evadC5B69bY9nML3x:14fat65sa; SSOiMFA06_JSESSIONID=0000wcDyymUYwFa67RR6sqgTMXy:14fauaqfb
Sending:: Accept-Encoding: gzip

Received from https://ssoiextra.ext.ampf.com/riskAuth/login.do?jump=false
Header:: HTTP/1.1 302 Found
Header:: Date: Mon, 26 Aug 2013 22:11:39 GMT
Header:: Server: IBM_HTTP_Server
Header:: Pragma: no-cache
Header:: Expires: Thu, 01 Jan 1970 00:00:00 GMT
Header:: Location: HTTPS://ssoiextra.ext.ampf.com/riskAuth/advisorPostAuth.jsp?appId=advisor&TYPE=33554432&REALMOID=06-d3ab3ba8-3769-4b7f-bc4c-37983fef16f5&GUID=&SMAUTHREASON=0&METHOD=GET&SMAGENTNAME=uss1uws018ampxb_si02_webagent&TARGET=$SM$HTTPS://ssoiextra.ext.ampf.com/SSO_Intra/auth_mfaSecureResultsampflogin.do?AppURL=HTTPS$:$/$/www$.advisorcompass$.com$/web$/advisorcompass$%2F
Header:: Content-Length: 0
Header:: Set-Cookie: AUTHRESPONSE=0; Path=/; Domain=.ampf.com
Header:: Set-Cookie: bharosaenrolled=false; Path=/; Domain=.ampf.com
Header:: Set-Cookie: ActiveResponse=dkNDS0NUdkQvZlFpTTZSMTFVTmQvSEFVRmFMVUxCWm5qRmR5VDNNWHFlSlZqcFhWdUxjNFFySHhkSzhCWDR6ejNZMG5OTG4xMUpYOFl1LzhNDQpyWWVHa1BGNlZRRXpyVEdiL1AvVm8wU2UrM013RVVQUFZCSHNCTWhqS1l6TUR0bFplazVHbU1pSGhoa1A2Mi9XRnQ1dTBud1RQQT09; Path=/; Domain=.ampf.com
Header:: Set-Cookie: SMSESSION=Ej9+RLWGyhO+6ch16BT0VsOJOL/81mcaN222H7DFpvcsE40HT+xZkdup7UKc3NZP87orfVcoDYNqYMfeLb77fq8pA2d32aIhcPkRY4thDoIdgtOwQcG5gDJKQzBOjIzJsoef+plcEmgcsvZ6yz//tZvW3jHEInPClrYgjQmvE4Ib8aGdm8PZWRlGrIgnGGq6cp5QOfablLVI9cyMHbKugJrMFG9NQsw34ERwJkthonypnF8WGw0C35cYLVQm1HPBsJ0HQfFq5pVHFSraz3PqoEVbCrID2A5m+eX7zYVXjRAk+6dTbYZ/+vIfA3dtYUNjoX4/KPbAO7ilLYQADLOC2SJxUdAM4kMCF55mupXorF50CeyJw5w0Z9TajL4B0nqVkD9Vg2poZ+VTypS07wyfHtWvMsH7nfkizXRm+S02wxLdOoEmoIvmMce9cZ+U9l7cGM8pw6LKMm6fCxwSPcs4puWojwtFIF8PKu7fmIdgAWWD4RzFTiSyukzi/6UA/zmH8KURHnkGAWqwdEqxkPACFP1PHw4H57gOiTSMS1eW+Rit9RwooihSYXvT08YFusUKLAtJd3bh4CvYlyU+bUNZMaZZVn2AlzC4bqeftWCppb1yjKhpaLP69k9vz/xEHTE0BSIwzUbo/xNsCOKDstZZ50emHEoGPDO/bBiLOUNGAYk3HAX7/C4ajVOau1OmQOtrvHaDrAAC4DPdbbJLreARopE6hoEHJpSbAW76YRlhToMcTM63nMdTZ8dATZDgr/3btuZWYk1of7zciEIViQytOIkWeT7OZFaUCGMloiyUbImkr4uvN681NsJgu8I+q79H+HkK+AvJvJsdDPKC/T7wc6ASgwDGUhac2+63L+ezxqqZvENYdr4NKWedBeobXvJhwHkR1npqpSXweB+S9Y2ur7411ECHnTaTAPBwRkOgnLVQZVLC8ePuCNm+1EJ02SQaT75GqW3U6cc1Yzyyla/YYuVCRJsxC4DsZykAj0HmOw30493lFLk5Kvlfb9DdXP8rl0FGXUlaqqMdimbNqmUhuZG7MKDz/j7oLKobGxUp0P8wAvwIRPUP3zSU4BrLgKdowJRRhgaSYg6l9lktDDuNXQF4tN9WCJGvXufRBQME66kav09dg099/0L0ZJW5GMfFH4Pw1m3A8xRZBU7tRrZNaMmjxokI37PLCUsf+uHIHMEFJU7742n9A6JiWwzxxaHaDuCRpVSEohRqh2t1mdH2XSkOUUFLzk3G; Path=/; Domain=.ampf.com
Header:: Set-Cookie: vsc=173483_be0b717ae9dc0066de51206b636a2b64; Expires=Sun, 24 Nov 2013 22:11:40 GMT; HttpOnly
Header:: Cache-Control: no-store, no-cache=set-cookie
Header:: Keep-Alive: timeout=15, max=90
Header:: Connection: Keep-Alive
Header:: Content-Type: text/html
Header:: Content-Language: en-US

Connecting to ssoiextra.ext.ampf.com
Sending:: GET HTTPS://ssoiextra.ext.ampf.com/riskAuth/advisorPostAuth.jsp?appId=advisor&TYPE=33554432&REALMOID=06-d3ab3ba8-3769-4b7f-bc4c-37983fef16f5&GUID=&SMAUTHREASON=0&METHOD=GET&SMAGENTNAME=uss1uws018ampxb_si02_webagent&TARGET=$SM$HTTPS://ssoiextra.ext.ampf.com/SSO_Intra/auth_mfaSecureResultsampflogin.do?AppURL=HTTPS$:$/$/www$.advisorcompass$.com$/web$/advisorcompass$%2F
Sending:: User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:5.0) Gecko/20100101 Firefox/5.0
Sending:: Cookie: SSOi06_JSESSIONID=0000wQlxL3evadC5B69bY9nML3x:14fat65sa; SSOiMFA06_JSESSIONID=0000wcDyymUYwFa67RR6sqgTMXy:14fauaqfb; vsc=173483_be0b717ae9dc0066de51206b636a2b64
Sending:: Accept-Encoding: gzip

Received from https://ssoiextra.ext.ampf.com/riskAuth/advisorPostAuth.jsp?appId=advisor&TYPE=33554432&REALMOID=06-d3ab3ba8-3769-4b7f-bc4c-37983fef16f5&GUID=&SMAUTHREASON=0&METHOD=GET&SMAGENTNAME=uss1uws018ampxb_si02_webagent&TARGET=$SM$HTTPS://ssoiextra.ext.ampf.com/SSO_Intra/auth_mfaSecureResultsampflogin.do?AppURL=HTTPS$:$/$/www$.advisorcompass$.com$/web$/advisorcompass$%2F
Header:: HTTP/1.1 302 Found
Header:: Date: Mon, 26 Aug 2013 22:11:41 GMT
Header:: Server: IBM_HTTP_Server
Header:: Cache-Control: no-store
Header:: Location: https://ssoiextra.ext.ampf.com/SSO_Intra/un_logon.do?ssolang=en_US&ssobrand=SSOi&FA=TWO&appId=advisor&TYPE=33554432&REALMOID=06-c6360a0e-dd5e-4c21-b4dc-b88c6e7089f1&GUID=&SMAUTHREASON=0&METHOD=GET&SMAGENTNAME=uss1uws018ampxb_si02_webagent&TARGET=$SM$HTTPS%3a%2f%2fssoiextra%2eext%2eampf%2ecom%2friskAuth%2fadvisorPostAuth%2ejsp%3fappId%3dadvisor%26TYPE%3d33554432%26REALMOID%3d06-d3ab3ba8-3769-4b7f-bc4c-37983fef16f5%26GUID%3d%26SMAUTHREASON%3d0%26METHOD%3dGET%26SMAGENTNAME%3duss1uws018ampxb_si02_webagent%26TARGET%3d$$SM$$HTTPS%3a%2f%2fssoiextra%2eext%2eampf%2ecom%2fSSO_Intra%2fauth_mfaSecureResultsampflogin%2edo%3fAppURL%3dHTTPS$$%3a$$%2f$$%2fwww$$%2eadvisorcompass$$%2ecom$$%2fweb$$%2fadvisorcompass$$$%2F
Header:: Content-Length: 1019
Header:: Keep-Alive: timeout=15, max=89
Header:: Connection: Keep-Alive
Header:: Content-Type: text/html; charset=iso-8859-1

Connecting to ssoiextra.ext.ampf.com
Sending:: GET https://ssoiextra.ext.ampf.com/SSO_Intra/un_logon.do?ssolang=en_US&ssobrand=SSOi&FA=TWO&appId=advisor&TYPE=33554432&REALMOID=06-c6360a0e-dd5e-4c21-b4dc-b88c6e7089f1&GUID=&SMAUTHREASON=0&METHOD=GET&SMAGENTNAME=uss1uws018ampxb_si02_webagent&TARGET=$SM$HTTPS%3a%2f%2fssoiextra%2eext%2eampf%2ecom%2friskAuth%2fadvisorPostAuth%2ejsp%3fappId%3dadvisor%26TYPE%3d33554432%26REALMOID%3d06-d3ab3ba8-3769-4b7f-bc4c-37983fef16f5%26GUID%3d%26SMAUTHREASON%3d0%26METHOD%3dGET%26SMAGENTNAME%3duss1uws018ampxb_si02_webagent%26TARGET%3d$$SM$$HTTPS%3a%2f%2fssoiextra%2eext%2eampf%2ecom%2fSSO_Intra%2fauth_mfaSecureResultsampflogin%2edo%3fAppURL%3dHTTPS$$%3a$$%2f$$%2fwww$$%2eadvisorcompass$$%2ecom$$%2fweb$$%2fadvisorcompass$$$%2F
Sending:: User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:5.0) Gecko/20100101 Firefox/5.0
Sending:: Cookie: SSOi06_JSESSIONID=0000wQlxL3evadC5B69bY9nML3x:14fat65sa; SSOiMFA06_JSESSIONID=0000wcDyymUYwFa67RR6sqgTMXy:14fauaqfb
Sending:: Accept-Encoding: gzip

Received from https://ssoiextra.ext.ampf.com/SSO_Intra/un_logon.do?ssolang=en_US&ssobrand=SSOi&FA=TWO&appId=advisor&TYPE=33554432&REALMOID=06-c6360a0e-dd5e-4c21-b4dc-b88c6e7089f1&GUID=&SMAUTHREASON=0&METHOD=GET&SMAGENTNAME=uss1uws018ampxb_si02_webagent&TARGET=$SM$HTTPS%3a%2f%2fssoiextra%2eext%2eampf%2ecom%2friskAuth%2fadvisorPostAuth%2ejsp%3fappId%3dadvisor%26TYPE%3d33554432%26REALMOID%3d06-d3ab3ba8-3769-4b7f-bc4c-37983fef16f5%26GUID%3d%26SMAUTHREASON%3d0%26METHOD%3dGET%26SMAGENTNAME%3duss1uws018ampxb_si02_webagent%26TARGET%3d$$SM$$HTTPS%3a%2f%2fssoiextra%2eext%2eampf%2ecom%2fSSO_Intra%2fauth_mfaSecureResultsampflogin%2edo%3fAppURL%3dHTTPS$$%3a$$%2f$$%2fwww$$%2eadvisorcompass$$%2ecom$$%2fweb$$%2fadvisorcompass$$$%2F
Header:: HTTP/1.1 200 OK
Header:: Date: Mon, 26 Aug 2013 22:11:42 GMT
Header:: Server: IBM_HTTP_Server
Header:: Cache-Control: no-cache
Header:: Pragma: no-cache
Header:: Expires: Thu, 01 Jan 1970 00:00:00 GMT
Header:: Keep-Alive: timeout=15, max=88
Header:: Connection: Keep-Alive
Header:: Transfer-Encoding: chunked
Header:: Content-Type: text/html;charset=ISO-8859-1
Header:: Content-Language: en-US
HttpWebResponse [url=https://ssoiextra.ext.ampf.com/SSO_Intra/un_logon.do?ssolang=en_US&ssobrand=SSOi&FA=TWO&appId=advisor&TYPE=33554432&REALMOID=06-c6360a0e-dd5e-4c21-b4dc-b88c6e7089f1&GUID=&SMAUTHREASON=0&METHOD=GET&SMAGENTNAME=uss1uws018ampxb_si02_webagent&TARGET=$SM$HTTPS%3a%2f%2fssoiextra%2eext%2eampf%2ecom%2friskAuth%2fadvisorPostAuth%2ejsp%3fappId%3dadvisor%26TYPE%3d33554432%26REALMOID%3d06-d3ab3ba8-3769-4b7f-bc4c-37983fef16f5%26GUID%3d%26SMAUTHREASON%3d0%26METHOD%3dGET%26SMAGENTNAME%3duss1uws018ampxb_si02_webagent%26TARGET%3d$$SM$$HTTPS%3a%2f%2fssoiextra%2eext%2eampf%2ecom%2fSSO_Intra%2fauth_mfaSecureResultsampflogin%2edo%3fAppURL%3dHTTPS$$%3a$$%2f$$%2fwww$$%2eadvisorcompass$$%2ecom$$%2fweb$$%2fadvisorcompass$$$%2F; headers=
DATE: Mon, 26 Aug 2013 22:11:42 GMT
SERVER: IBM_HTTP_Server
CONNECTION: Keep-Alive
PRAGMA: no-cache
CONTENT-TYPE: text/html;charset=ISO-8859-1
CONTENT-LANGUAGE: en-US
TRANSFER-ENCODING: chunked
EXPIRES: Thu, 01 Jan 1970 00:00:00 GMT
KEEP-ALIVE: timeout=15, max=88
CACHE-CONTROL: no-cache ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem with HttpUnit Login to a SSO page
 
Similar Threads
another question form Poddar's questions
Change Yahoo! Id ?
java.io.IOException: Server returned HTTP response code: 401 for URL:
calling web site
jk_mod issue