Jump to content
xisto Community
Sign in to follow this  
kvarnerexpress

Clean And Fast Way To Get/sent Http?

Recommended Posts

I've stumbed across a problem where a database is designed so that the only way to get data in is to use a webpage. With a nice login page, frames, links, inputboxes, ect. Definitly a weird solution, and what's more, I wasn't able to talk the people into using something different.When a large amount of data is needed to be put there, I need some way to get html and send data back. I could go for sockets, but that simply seems a too low level approach. What I'm looking for is a library, of sorts, that allows to create a nice HTTP request, send it, get the data back, and a function to send some data, with specifying what goes into which form.The reason I'm posting in the C++ forum is, of course, that I want to code the app in C++.If anyone has any ideas on how that's done, I'll be thankful.kvarnerexpress

Share this post


Link to post
Share on other sites

Hmm, I don't know of any such library, but basic HTTP headers aren't difficult to construct.

Example:

char *headers = "GET / HTTP/1.1\r\nConnection: close\r\nAccept: */*\r\nHost: google.com\r\n\r\n";

There probably are such libraries floating around. Have a look on SourceForge.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.