Help answer threads with 0 replies.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 11-20-2012, 06:39 AM   #1
Registered: Jul 2012
Posts: 106
Blog Entries: 1

Rep: Reputation: Disabled
Question How can my CGI C++ Server-api on Apache receive data from an HttpServer and reply?

I want my CGI C++ Server api (on Apache) to be able to receive data (strings) from an HttpServer (a website) and also reply back data (string Array) to the HttpServer.

Im on Kubuntu 10 and installed Aphache.

I actually have set up a C++ DBMS api which takes SQL strings parses&executes them and replies back the char array. So I want to 'Internetize' it.
Old 11-20-2012, 03:11 PM   #2
LQ 5k Club
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,397
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
For HTTP GET requests, your CGI application will get it's data from the commandline. HTTP POST reqests will pass data through standard input.
If the CGI URL is specified as the handler for an HTML form entity, then the HTML form 'action' attribute specifies the CGI handler.

--- rod.
Old 11-20-2012, 03:51 PM   #3
Registered: Jul 2012
Posts: 106
Blog Entries: 1

Original Poster
Rep: Reputation: Disabled
Hmm so its bit like in PhP I'm actually trying to figure out.

Thank you so much for your patience


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux - Bonding - UDP Server receive two pieces of data at a time from client xuniuer Linux - Networking 1 12-16-2010 09:43 PM
How can I receive a 100kb data on a Linux server NancyT Programming 7 11-12-2008 07:13 PM
How can I receive a 100kb data on a Linux server NancyT Linux - Server 1 11-12-2008 06:17 AM
AJAX:how to receive data from CGI successively simon_qwl Programming 2 04-26-2007 11:10 PM
move ssl from ibm httpserver to apache on Red Hat Enterprise Linux 3 wealth2k Linux - Security 4 06-30-2004 03:31 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:51 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration