Thread: Httpd forms with?

  1. #1
    Registered User
    Join Date
    Aug 2007

    Httpd forms with?

    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.

  2. #2
    int x = *((int *) NULL); Cactus_Hugger's Avatar
    Join Date
    Jul 2003
    Banks of the River Styx
    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)

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Good introduction to Windows Forms?
    By jcafaro10 in forum C# Programming
    Replies: 1
    Last Post: 05-19-2009, 06:11 PM
  2. Replies: 2
    Last Post: 04-02-2009, 04:40 AM
  3. C# Game using Forms
    By ejohns85 in forum C# Programming
    Replies: 1
    Last Post: 12-16-2006, 05:35 PM
  4. Which one :MFC, Win32, Windows Forms (.Net)?
    By Robert_Sitter in forum Windows Programming
    Replies: 6
    Last Post: 11-17-2005, 06:15 AM
  5. Redhat 8: HTTPD Service Fails to Start.
    By Xei in forum Tech Board
    Replies: 1
    Last Post: 03-11-2003, 01:59 AM