David Michell

Greenhorn
+ Follow
since Sep 15, 2008
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by David Michell

Originally posted by Ulf Dittmer:
Setting them is done using the addRequestProperty and setRequestProperty methods.



Does that therefore mean that Headers and RequestProperties are the same thing?
13 years ago

Originally posted by Ulf Dittmer:
... It's possible to set custom headers if you create your own (Http)URLConnection, though, like you mention for the alternative approach.



That sounds promising. I've had a look at the javadocs for the HttpUrlConnection class though and I can't find any methods for adding headers (only for getting them). Could you point me in the direction of some documentation and/or code that I could follow to do this?
13 years ago
It'll be the user's browser coming via my Java code.

The scenario that I'm envisioning is that the user has logged into our SAP portal and gone through the standard authentication process there. They then hit a link within the portal to go to Adobe Connect. That particular link actually sends them to my servlet which checks that they're authenticated (using a Java package made available by SAP), extracts their user ID, adds it to the necessary custom header field and then forwards the request on to the Adobe Connect login page.

Alternatively I may need to create a new request within my servlet with the custom header added. I then parse the response from Adobe Connect verifying the login is successful and getting the appropriate session cookie. I think return that session information back to the user and redirect them to the Adobe Connect home page.

(as you can tell I'm still in the process of investigating how this is going to work, unfortunately I've fallen at the first hurdle because of the difficulty of adding information into a custom header in a request)

PS Thanks for the welcome.
[ September 15, 2008: Message edited by: David Michell ]
13 years ago
Hi all,

Does anyone know of a way to add a custom header to an HTTP request?

My situation is that I'm trying to get Single Sign-on working between an SAP portal and the Adobe Connect product. Adobe Connect can be configured to have the user's id (which has been authenticated by my separate program) passed to it in a developer-specified header field.

I have (I think) sufficient documentation to do the authentication part of the process however I can't figure out how to add the user ID (once I've determined it) to a custom header field in a request to the Adobe Connect login URL.

Anyone know how I'd go about doing this?

Thanks in advance,
David

PS I realize using something other than a header would be easier but I'm constrained by the requirements of the Adobe Connect package that I'm working with.
13 years ago