in reply to translating ajax+asp -> perl
An ASP server hands a page a couple of objects, among which are response and request. Request provides the data sent from the client (browser) to the server, response is the object used by the page to send data back to the client.
CGI (in any language) is actually a lower-level protocol where the input from the client is sent via environment variables and STDIN (for request bodies) and the CGI program is supposed to provide all output via STDOUT, which then probably gets parsed by the server to extract/process the message headers.
Other systems use more-or-less different protocols. It's probably even possible to implement most of the ASP protocol on top of CGI or some other system.
If you're using mod_perl, for instance, most information is available via a single $request object (or objects available via that object) which also handles the response. STDOUT may or may not be tied to the response body.
In your case, it would probably be a good idea to read up a bit on ASP. Or find some other source of info on Ajax.
update: see also Apache2::ASP
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: translating ajax+asp -> perl
by spx2 (Deacon) on Feb 11, 2008 at 21:14 UTC | |
by Joost (Canon) on Feb 11, 2008 at 21:23 UTC |