Hi there!
I am experimenting with CGI programming in C, and I have come up to a brick wall.
I have figured out how to set a cookie by sending Set-Cookie as part of the outgoing HTTP header. I know this works because I see my cooke in the Cookies folder on my Win2000 system when I go to the page.
However, I dont know how to read an HTTP Request header.
Is it set as an environment variable or do I need to read it some other way? (possibly stdin?)
I think this is the last thing that I need to learn in order to finish my project.
Any help or ideas would be appreciated
Regards,
Gerald
[sig][/sig]
I am experimenting with CGI programming in C, and I have come up to a brick wall.
I have figured out how to set a cookie by sending Set-Cookie as part of the outgoing HTTP header. I know this works because I see my cooke in the Cookies folder on my Win2000 system when I go to the page.
However, I dont know how to read an HTTP Request header.
Is it set as an environment variable or do I need to read it some other way? (possibly stdin?)
I think this is the last thing that I need to learn in order to finish my project.
Any help or ideas would be appreciated
Regards,
Gerald
[sig][/sig]