LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 11-20-2012, 05:39 AM   #1
esgol
Member
 
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, 02:11 PM   #2
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
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, 02:51 PM   #3
esgol
Member
 
Registered: Jul 2012
Posts: 106

Original Poster
Blog Entries: 1

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

Thank you so much for your patience
 
  


Reply



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 08:43 PM
How can I receive a 100kb data on a Linux server NancyT Programming 7 11-12-2008 06:13 PM
How can I receive a 100kb data on a Linux server NancyT Linux - Server 1 11-12-2008 05:17 AM
AJAX:how to receive data from CGI successively simon_qwl Programming 2 04-26-2007 10:10 PM
move ssl from ibm httpserver to apache on Red Hat Enterprise Linux 3 wealth2k Linux - Security 4 06-30-2004 02:31 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 10:34 PM.

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