LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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
 
LinkBack 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,391
Blog Entries: 2

Rep: Reputation: 900Reputation: 900Reputation: 900Reputation: 900Reputation: 900Reputation: 900Reputation: 900Reputation: 900
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
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
 
  


Reply


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
Trackbacks are Off
Pingbacks are On
Refbacks are 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


All times are GMT -5. The time now is 03:16 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration