Posted by Jes Rahbek Klinke on 1999-06-25
>To all you CGI programmers, I have a question. >If you can use C or C++ to run CGI applications, is it safe to assume that one could write a CGI program on a >Windows machine with HTTP server that when implemented could telnet to a unix machine, retrieve some data, >and then post it on the web server that is running on the Windows machine? >DarkCrystal That is perfectly possible. I have written a CGI application like the one you describe in Delphi. Just be aware that the telnet protocol is a bit tricky, you have to take care of some codes from the server, asking what kind of terminal you are using, whether the server should echo incoming characters to you, and some other things. The RFC's 854 and 855 are a good resource for a description of all these codes. Yours Jes Klinke
Previous post | Next post | Timeline | Home