Home

How to write your first CGI program for the IGW/922 user web server

image

Contents

1. RZ r00t 192 168 0 126 FileZilla Datei Bearbeiten Ansicht Transfer Server Lesezeichen Hilfe Neue Version verf gbar Server 192 168 0 126 Benutzername Passwort verbinden JI 200 Type set to I PASY 227 Entering Passive Mode 192 168 0 126 9 220 LIST 150 Opening BINARY mode data connection For binjls 226 Transfer complete Anzeigen des Yerzeichnisinhalts abgeschlossen Lokal C _FTPitemp v tusr localfwww cgi bin temp A EA mnt 5 WSN EP proc _TOSHIBA ALT 2 root O _TOSHIBA NEU EA rw coLinux 2 sbin cygwin ER sys Dokumente und Einstellungen EP tmp FwBuilder21 a usr Google 2 adm HitexSTR9Workshop ER bin Kw Software 2 lib D S MIM Sh idin m local Dateiname Dateigr e Dateityp Zuletzt ge ndert bin E Ikcpserver java 1 632 JAYA Datei 09 02 2009 12 20 36 2 ib E m2m webbanner swf 6 666 Shockwave Flas 11 07 2010 14 05 03 b sbin tal Mausproblem jpg 23 122 JPEG Bild 21 05 2010 08 55 03 H can MulticastPeer java 988 JAVA Datei 05 02 2009 13 39 13 E ar 2 SEE post_request pl 561 PL Datei 15 02 2009 19 40 37 fe TCPClient class 1 644 CLASS Datei 09 02 2009 12 28 12 Dateiname Dateigr e Dateityp Zuletzt ge ndert Berechtigu Besitzer Gr E TCPClient java 939 JAVA Datei 09 02 2009 12 27 43 E TCPServer class 1 750 CLASS Datei 09 02 2009 20 13 26 E test cgi 839 CGl Datei 01 10 2010 12 rwer root root 13 TCPServer java 1 239
2. x 1 root root 839 Oct 1 12 38 root ADNP9208 ca b nl Verbunden 00 04 03 115200 8 N 1 SSV EMBEDDED SYSTEMS 2010 mHTigw922 6 doc Rev 1 00 3 VPN Remote Access Gateway IGW 922 microHOWTO e 5 Step Run your web browser and access the new CGI program over the IGW 922 user web server Use the following URL http 192 168 0 126 cgi bin test cgi CGI Environment Variable ER 4 http 192 168 0 126 cgi bin test cgi amp Qr Google SERVER SOETWARE lishitpdi1 4 15 SERVER NAME 192 168 0 126 SERVER PROTOCOL HTTPY1 1 SERVER PORT 80 REQUEST METHOD GET GATEWAY INTERFACE CGI1 1 PATH INFO PATH TRANSLATED REMOTE HOST REMOTE _ADDR 192 168 01 REMOTE IDENT SCRIPT NAME cgi bintest cgi QUERY STRING CONTENT TYPE CONTENT LENGTH 0 Please note usr local www cgi bin is a RAM disk directory After the next reboot the file test cgi is removed from this directory Please see also mHTigw922 5 pdf How to use non volatile storage space for your HTML pages That s all SSV EMBEDDED SYSTEMS 2010 mHTigw922 6 doc Rev 1 00 4
3. JAYA Datei 05 02 2009 13 39 07 fe test sqlite3 php 695 PHP Datei 04 12 2009 18 20 33 fe test cai 839 CGI Datei 23 01 2007 09 01 22 test lua 411 Lua Script File 07 11 2009 01 31 48 _ test luac 136 Lua Compiled Fie 02 11 2009 22 32 51 fe test sh 839 SH Datei 23 01 2007 09 01 20 3 Thumbs db 24 064 Datenbankdatei 17 07 2009 15 57 49 UDPClient java 966 JAVA Datei 05 02 2009 13 37 38 E UDPServer java 773 JAYA Datei 05 02 2009 13 38 56 ke write_values php 837 PHP Datei 16 02 2009 09 10 18 1 Datei ausgew hlt Gesamtgr e 839 Bytes 1 Datei Gesamtgr e 839 Bytes Server Lokale Datei Richtung Datei auf Server Gr e Priorit t Status 9 17798322 dilnetpc com C Dokumente und Einstellun gt mHT d5282 05 pdf 322 678 Normal Zu bertragende Dateien 1 Fehlgeschlagene bertragungen Erfolgreiche bertragungen 1 at amp Warteschlange 316 KiB ee e 4 Step Run a Telnet or serial console session with administrator rights and change the fest cgi file attributes to executable chmod x test cgi USB 115 N 8 1 HyperTerminal Datei Bearbeiten Ansicht Anrufen bertragung Iroot ADNP9 BB cgi binl ls al drwxruxrwx 2 root root 128 Oct 1 12 30 drwxr xr x 3 root root 288 Dec 9 2005 rw r 1 root root 839 Oct 1 12 30 test cg Iroot ADNP9 BB cgi binl chmod x test cg Iroot ADNP9 BB cgi binl ls al drwxruxrwx 2 root root 128 Oct 1 12 30 drwxr xr x 3 root root 288 Dec 9 2085 rWkr x
4. pdf How to download and install a HTML editor for more details and enter the following code lines bin sh test sh Environment Variable echo Content type text html SSV EMBEDDED SYSTEMS 2010 mHTigw922 6 doc Rev 1 00 1 VPN Remote Access Gateway IGW 922 microHOWTO Tr r wer echo echo lt html gt echo lt head gt echo lt title gt echo CGI Environment Variable echo lt title gt echo lt head gt echo lt body gt echo SERVER SOFTWARE SERVER SOFTWARE lt br gt echo SERVER_NAME SSERVER_NAME lt br gt echo SERVER_PROTOCOL SSERVER_PROTOCOL lt br gt echo SERVER_PORT SSERVER_PORT lt br gt echo REQUEST_METHOD SREQUEST_METHOD lt br gt echo GATEWAY INTERFACE SGATEWAY INTERFACE lt br gt echo PATH INFO SPATH INFO lt br gt echo PATH TRANSLATED SPATH TRANSLATED lt br gt echo REMOTE HOST SREMOTE HOST lt br gt echo REMOTE ADDR SREMOTE ADDR lt br gt echo REMOTE IDENT SREMOTE IDENT lt br gt echo SCRIPT NAME SSCRIPT NAME lt br gt echo QUERY _STRING SQUERY_ STRING lt br gt echo CONTENT TYPE SCONTENT TYPE lt br gt echo CONTENT LENGTH SCONTENT LENGTH lt br gt echo lt body gt echo lt html gt exit 0 1 PSPad C _FTP templtest cgi Kex E Datei Projekt Bearbeiten Suchen Ansicht Format Werkzeuge Skripte HTML Einstellungen Fenster Hilfe Pel EX 1 best cgi o e e GSE 25 TERT A Meues Projekt Environment Variable C Ordner echo Content
5. VPN Remote Access Gateway IGW 922 microHOWTO How to write your first CGI program for the IGW 922 user web server The software of the VPN Remote Access Gateway IGW 922 offers two different embedded web servers One is available over TCP port 7777 This so called configuration web server works in HTTP mode only and is reserved for IGW 922 web based configuration interface Please see also the document Web ConfigTool User manual The other web server is accessible over TCP port 80 in HTTP mode or TCP port 443 in HTTPS mode This so called user web server can be used for user applications This document describes how to write a simple CGI shell script program download the program file to the user web server default CGI file space and how to access this CGI application program over a web browser e 1 Step Use the IGW 922 web based configuration interface and make sure that the FTP server is running and that the HTTP HTTPS web server is also enabled This server is the user web server Y Mozilla Firefox Datei Bearbeiten Ansicht Chronik Lesezeichen Extras Hilfe a e El http 192 168 0 44 7777 cal binflagin cai General service configuration General service configuration Status yale Telnet server Network Services Time server d HTTP HTTPS Web server Enable OpenVPN DHCP server Firewall and NAT Proxies Logout e 2 Step Run a editor with HTML and shell script support on your PC see mHTigw922 2
6. type text html echo echo lt html gt echo lt head gt echo lt title gt echo CGI Environment Variable echo lt title gt echo lt head gt echo lt body gt echo SERVER SOF TWARE SERVER SOF TWARE lt br gt echo SERVER NA amp ME SERVER NAME lt br gt echo SERVER PROTOCOL _oERVER PROTOCOL lt hr gt echo SERVER PORT SERVER PORT lt br gt echo REQUEST METHOD REQUEST METHOD lt br gt echo GATEWAY INTERFACE GATEWAY INTERFACE lt br gt echo PATH INFO SPATH INFO lt bre gt echo PATH_TRANSLATED SFATH_TRANSLATED lt br gt echo MRENOTE HOST SRENGTE HOSTebr echo REMOTE ADDR REMOTE ADDR lt chr gt echo REMOTE IDENT SRENOTE IDENT lt br gt echo SCRIPT NANESFSCRIPFT NAME lt bEys gt echo QUERY STRING SQUERY STRING lt br gt echo CONTENT TIPE ZCONTENT TYPE lt hr gt echo CONTENT _LENGTH 5 CONTENT LENGTH lt br gt echo lt body gt echo lt html gt exit oO M o 35 25 UNIS Shell Script UNITS Kodierung ANSI windows SSV EMBEDDED SYSTEMS 2010 mHTigw922 6 doc Rev 1 00 2 VPN Remote Access Gateway IGW 922 microHOWTO e 3 Step Save the code lines to a file with the name test cgi in a Unix file format Then transfer this file from your PC to the IGW 922 directory usr local www cgi bin within the IGW 922 file system Please use a FTP session for the file transfer The default IGW 922 FTP user name is root The default password for this user is also root

Download Pdf Manuals

image

Related Search

Related Contents

INSTRUCCIONES DE INSTALACIÓN para Puertas de Interior  USER MANUAL BEDIENUNGSANLEITUNG    InLine 43202 equipment cleansing kit  Thomson Lyra PDP2810 1.5 GB MP3 Player  この商品のカタログをダウンロード  Fiche Commerciale - Laboratoire OBST  

Copyright © All rights reserved.
Failed to retrieve file