webserver goahead header question

I'm writing a small web API routine using webserver Goahead. What's the API to be used to get the Http header information. Please help.

-------------Problems Reply------------

Please be specific to your question. I am using GoAhead for my Embedded Web Server.

You need to define the form like below to handle the subit methods (Get/POST)

void formSetLoopCode (webs_t wp, char_t *path, char_t *query)
{
a_assert (wp);
int opt,port;
opt = gatoi (websGetVar (wp, "opt", "1"));
port = gatoi (websGetVar (wp, "port", "1"));
}

The header information is converted into variables that are retrieved using websGetVar.

Category:webserver Views:0 Time:2010-07-13
Tags: webserver

Related post

  • Flex 4 app behind proxy server w/auth fails to call webservice when launched from IE (firefox ok) 2009-12-30

    I have Flex 4 app which is deployed in internet. Just as an intro, when i'm behind our corporate proxy server, IE and firefox asks for username and password when accessing external websites. WHEN BEHIND PROXY In IE (i tested only in 8) Flex app start

  • Local/Dev/Live deployment - best workflow 2010-04-28

    situation We our little company with 3 people, each has a localhost webserver and most projects (previous and current) are on one PC network shared disk. We have virtual server, where some of our clients' sites and our site. Our standard workflow is:

  • C# object to string and back 2011-08-08

    My problem: I have a dynamic codecompiler. Wich can Compile a snippit of code. The rest of de code. (imports, namespace, class, main function) is already there. The snippit get inserted into that and then it is compiled to an assembly and executed. T

  • How to get ASP.net (1.1) to look for the assembly.dll file in your Application Folder 2011-08-27

    I'm running ASP.Net (vers 1.1) with code-behind that generates a assembly.dll file which it looks for in the Root/Bin folder of the WebServer. My question is .... how can I get ASP.Net to look for my assembly.dll file in the Root/ Application folder

  • Apache or Nginx to serve Django applications? 2012-02-06

    I want to deploy a Django web application, and hence I need to choose a web server to serve the Python files. I should mention that my production site will be on a single server, which will host the database and the web server. As momentum picks, I a

  • Question about TCP states for a webserver process - Why is it always on LISTENING state? 2011-01-19

    I'm learning in-depth TCP now and I didn't understand the TCP lifecycle of a server process. Supposed I'm running a web server on port 80, when I use netstat to view the connection, I see it listens on port 80, as it should be. When new clients conne

  • magento - webserver question 2010-05-12

    I've uploaded the Magento installation file to my hosting and I've been told to go to the URL you uploaded it to using you browser, then the installation wizard will run you through the processes. I uploaded to /home/domain/public_html/magneto What U

  • How do you configure VS2008 to only open one webserver in a solution with multiple projects? 2008-08-19

    Starting with 2005, VS started this behavior of when starting debugging session it spawns up a webserver for every project in a solution. I have a solution with 15 projects so it takes a while and is a waste of resources. Is there a way to configure

  • Email Delivery Question 2008-08-28

    This question comes on the heels of the question asked here. The email that comes from our web server comes from an IP address that is different than that for the Exchange server. Is this okay if the SPF and Domain keys are setup properly? ----------

  • Windows Licensing Question 2008-09-21

    This is slightly off topic of programming but still has to do with my programming project. I'm writing an app that uses a custom proxy server. I would like to write the server in C# since it would be easier to write and maintain, but I am concerned a

  • How to prevent Crystal webserver refetching data on each page 2008-10-01

    We're using Crystal 11 through their webserver. When we run a report, it does the Sql query and displays the first page of the report in the Crystal web reportviewer. When you hit the next page button, it reruns the Sql query and displays the next pa

  • Webserver to combine xml files? 2008-10-06

    I have a program I've written in VB.NET 2005, it saves statistics in an xml file. I use this program on multiple computers. I'd like to set up a webserver where I can upload my xml file, or just the data, and add it to the server ignoring duplicate e

  • What is the fastest webserver solution with the lowest memory footprint? 2008-10-30

    I need a webserver to serve up very simple POST/GET requests as JSON. I don't need MVC, Rails, Django. I need something that takes up very little memory, preferrably around 5K per reqeust. The webserver will talk to backend services like Scribe using

  • PHP output showing little black diamonds with a question mark 2008-11-09

    I'm writing a php program that pulls from a database source. Some of the varchars have quotes that are displaying as black diamonds with a question mark in them (�, REPLACEMENT CHARACTER, I assume from Microsoft Word text). How can I use php to strip

  • Multiple installs of Django - How to configure transparent multiplex through the webserver (Lighttpd)? 2008-11-27

    This question flows from the answer to:How does one set up multiple accounts with separate databases for Django on one server? I haven't seen anything like this on Google or elsewhere (perhaps I have the wrong vocabulary), so I think input could be a

  • Best way to redirect image requests to a different webserver? 2008-12-16

    I am trying to reduce the load on my webservers by adding an "Image server" (a dedicated server for handling image requests), and redirecting all requests for .gif,.jpg,.png etc., to it. My question is, what is the best way to handle the redirection?

  • Intranet back-office data on the webserver? 2009-01-31

    I am upgrading a client's e-commerce webstore and have hit a bit of a snag. The store is a custom-made set of PHP scripts. At each sale, the credit card is charged via the merchant account interface, and then the order is e-mailed to the client's des

  • Question about using subdomains to force caching 2009-02-04

    I haven't had a huge opportunity to research the subject but I figure I'll just ask the question and see if we can create a knowledge base on the subject here. 1) Using subdomains will force a client side cache, is this by default or is there an easy

  • Ruby webserver without opened port 2009-02-23

    I am looking for possibility to have ruby-based webserver communicating by pipe, not by TCP/IP. So I will send HTTP request by pipe and I want to read response by pipe. It should be used as bundled/internal webserver (RPC or something) for desktop ap

Copyright (C) dskims.com, All Rights Reserved.

processed in 0.120 (s). 11 q(s)