C Board  

Go Back   C Board > General Programming Boards > Networking/Device Communication

Reply
 
LinkBack Thread Tools Display Modes
Old 02-22-2008, 10:46 AM   #1
Registered User
 
Join Date: Aug 2007
Posts: 16
Httpd forms with?

Hi,
Is there a way to use forms with c? I have wrote a httpd server app but when i trying to pass a variable between pages (actually funcs) i am failing..
On the other hand, what do you think of using parsing? i mean just parsing 'http://blablaort/var/1' i know this is easiest way to do but i wonder the forms possibility.
Thanks in advance.
|HBO| is offline   Reply With Quote
Old 02-22-2008, 11:45 PM   #2
int x = *((int *) NULL);
 
Cactus_Hugger's Avatar
 
Join Date: Jul 2003
Location: Banks of the River Styx
Posts: 902
Form data is passed to the server by the web browser as part of the request for the page the form is submitted to. The exact syntax of how the data is passed is different depending on if the form uses GET or POST.
Two things:
1) Get a hold of an RFC for the HTTP protocol.
2) Set yourself up a real HTTP server, such as with apache. Use something like wireshark to sniff the TCP traffic as you request pages from your browser, and use this sniffing to learn by example. HTTP is a fairly simple protocol.
__________________
long time; /* know C? */
Unprecedented performance: Nothing ever ran this slow before.
Any sufficiently advanced bug is indistinguishable from a feature.
Real Programmers confuse Halloween and Christmas, because dec 25 == oct 31.
The best way to accelerate an IBM is at 9.8 m/s/s.
recursion (re - cur' - zhun) n. 1. (see recursion)
Cactus_Hugger is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Good introduction to Windows Forms? jcafaro10 C# Programming 1 05-19-2009 06:11 PM
insert differnt forms in a single form under different tabs? and a textBox question arian C# Programming 2 04-02-2009 04:40 AM
C# Game using Forms ejohns85 C# Programming 1 12-16-2006 05:35 PM
Which one :MFC, Win32, Windows Forms (.Net)? Robert_Sitter Windows Programming 6 11-17-2005 06:15 AM
Redhat 8: HTTPD Service Fails to Start. Xei Tech Board 1 03-11-2003 01:59 AM


All times are GMT -6. The time now is 10:42 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22