Question

My apache2 module written in c++ works just fine, it handles "page.xyz"-like requests from browser clients, and it can return the appropriate result.

What I need now is to use my module as a client to another server: make a HTTP (GET) request and get the response (GET https://graph.facebook.com/oauth/access_token?...).

Does apache has a magic can do this, or do I have to deal with sockets and make HTTP packets manually? What is the best way to do this?

Many thanks!

Was it helpful?

Solution

I am guessing you are on your own with the HTTP client. Probably the easiest way to make an HTTP connection is to use libcurl. On linux it should be installable from your distro's repositories.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top