Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Reading a cookie with C

Status
Not open for further replies.

gerald

Programmer
Apr 10, 2000
152
US
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 found this to be a BIG help for CGI programs in C:


You just unpack it, make a few minor changes to your program, link it in and compile it, very easy. Lots of nice documentation on the site as well. You'll be able to do what you want much easier (and more safely) with it.

Regards,

[sig]<p>Russ<br><a href=mailto:bobbitts@hotmail.com>bobbitts@hotmail.com</a><br><a href= is in</a><br>[/sig]
 
Thanks alot. Im gonna go check it out right now.

I tried using lib I couldnt get anything to compile it would always give me parse errors in their include files.

Thanks for the info

Regards,
Gerald
[sig][/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top