I was given an assignment to send a username in the HTTP Request Header when linking to another website.
They want the value in a non-standard header field called J_USER followed by the users id like this example:
GET User-Agent: Mozilla 7.0
JUSER: manjo
Also, the program I'm to modify links to the web-site via a hypertext link (href=) within HTML code.
In all my research, I can't figure out if you can even make up an HTTP request header name called JUSER and just include it in the request. I've seen many examples of standard request header fields.
If you can, how do you do it within a perl/cgi program (this is not mod_perl by the way), that links to the program thru HTML code? Can you set request header fields outside of the HTML code?
I know other ways to send this info are:
1. via name/value pairs in the URL link, or
2. in the standard Authentication header field (although I don't know how to do that either because of the HTML issue).
But the information I've been given leads me to believe they don't want to accept the info that way.
Thanks for any help...
Margaret
They want the value in a non-standard header field called J_USER followed by the users id like this example:
GET User-Agent: Mozilla 7.0
JUSER: manjo
Also, the program I'm to modify links to the web-site via a hypertext link (href=) within HTML code.
In all my research, I can't figure out if you can even make up an HTTP request header name called JUSER and just include it in the request. I've seen many examples of standard request header fields.
If you can, how do you do it within a perl/cgi program (this is not mod_perl by the way), that links to the program thru HTML code? Can you set request header fields outside of the HTML code?
I know other ways to send this info are:
1. via name/value pairs in the URL link, or
2. in the standard Authentication header field (although I don't know how to do that either because of the HTML issue).
But the information I've been given leads me to believe they don't want to accept the info that way.
Thanks for any help...
Margaret