2010-10-30 00:54:42     Extract request from web form

Document created by Aaronwu Employee on Aug 23, 2013
Version 1Show Document
  • View in full screen mode

2010-10-30 00:54:42     Extract request from web form

Wojtek Skulski (UNITED STATES)

Message: 95404   

 

I am trying to understand how the info is passed from the webform to the application written in C. Specifically, function  ParseRequest in ndso.c. There is some interesting loop logic there which is less than clear without documentation. Is there a Wiki or a HOWTO available somewhere which would explain the content of character arrays "getvars" and "postvars"?

QuoteReplyEditDelete

 

 

2010-10-31 22:57:44     Re: Extract request from web form

Sonic Zhang (CHINA)

Message: 95429   

 

You may need to read some CGI application programming doc. The C application can read the form data from std input stream.

 

  www.cgi101.com/book/ch4/text.html

QuoteReplyEditDelete

 

 

2010-11-02 11:55:44     Re: Extract request from web form

Wojtek Skulski (UNITED STATES)

Message: 95488   

 

Sonic:

 

thanks a lot for the pointer to CGI programming. This info will be very useful to me.

 

I am now dissecting the ndso. It looks like a great demo app to me. However, there was not quite enough documentation concerning its internal structure, parameter passing, and which function is doing what. This kind of docu would not be needed if ndso was a final app, but it would make sense to make ndso a starting point for other developers, esp. non-experts in CGI.

Attachments

    Outcomes