httpclient - Logging into SiteMinder using Java -
as working on project making call url , url using siteminder every time make request url
https://some-host/a/getmeta?id=10
it redirects me other url contains siteminder thing
location: https://login.somehost.com/siteminderagent/nocert/1309460767/smgetcre d.scc?type=16777217&realm=-sm-documentum%20[12%3a06%3a07%3a4932]&smauthreason=0& method=get&smagentname=-sm-6d9ykpar83asdc5sb4kdjzthgfzid%2fyhfkbzwyvx5euegmi0doa ugvx6wok1dai3&target=-sm-http%3a%2f%2fsome-host%2fa%2fgetmeta%3fid%3d10
and if open link browser ask username , password , if provide username , password actual content back..
so how can authenticate everytime , using httpclient 4.1.1.
well, can follow redirect, fill in fields , post form. take want go.
the fields standard user , password fields siteminder. need ensure java code handles redirects , maintains cookie. commons-httpclient pretty easily.
Comments
Post a Comment