Download presentation
Presentation is loading. Please wait.
Published byVanessa Riley Modified over 9 years ago
1
Advanced Web Server/HTTP Server AWS/HTTP Server – how do they differ? The Net+Works Windows Utility AWS/Pbuilder HTTP server
2
Advanced Web Server/HTTP Server Differences HTTP Server –Uses HTML-to-C utility –Provides solid basic server AWS Server –Uses Pbuilder utility –Provides advanced features HTTP v1.1 compatibility File upload File system stubs External CGI Cookies Web content compression
3
Net+Works Windows Utility Access either HTTP Server (HTML->C) or AWS (Pbuilder) utility Use the App Wizard to construct your Server application Use FTP-> to load your Server application to the board
4
Advanced Web Server
5
AWS/pbuilder Not needed unless interaction –Pbuilder will compile html All tags must have an <!– RpEnd Space required after !— Space required before RpEnd follows the html command Rppages.c and PbSetUp.txt lines need Basic format –<!– RpCommand –Some html –<!– RpEnd
6
Running pbuilder Image files (.jpeg,.bmp) html files File.pbb Add new pbuilder commands New html files pbuilder Pbsetup.txt
7
Running pbuilder pbuilder c files_v.c files rppages.c Rpsetup.txt Place modules Into separate file Project
8
HTTP Project Structure All Additional Application C Files Additional Library File
9
Creating your utility programs Aka filling in the stub programs Copy stubs to new file Fill in the stubs When done, use DontCreateVariablesFile Use std c commands For “get” commands, replace the default variable with your own char * Start small/simple
10
Review an existing application html code pbuilder calls Application modules (filled out routines) rppages.c
11
Hints and Kinks Do –Always generate the html first –Always use a batch file –Create subroutines in separate files –Use PbSetUp.txt file –RpSetUp.txt/rppages.c lines must end with
12
Hints and Kinks Don’t –Fill out subroutines in _v.c files –Develop without a batch file
13
HTTP Server
14
Integrating an HTTP Server Baseline Application Kernel, Stack, BSP httpd.a Link in Web Page(s) 1.Web Page _*.c files 2.URL.C 3.bindata.c HTML to C Utility Fill-in Dynamic Function Calls in the C Source Code
15
Net+Os v6.0 Enhancements File System
16
HTTP Server (File System) This’s actually RomPager file system interface –RomPager handles POP3, SMTP & HTTP server. Define APP_FILE_SYSTEM in file.c or application build file Upload file to the file system from web pages Download files from the file system –Use “FS” prefix to access any files in the file system.
17
HTTP Server (File System) Upload Only MULTIPART/FORM-DATA of ENCTYPE is supported for file upload Use web page access value Multiple access values / no web page access –Use the same group id of a directory where a file or directory is created to –Use default value (from RpHSSetDefaultGroupId) for creating a file/directory in ROOT directory
18
HTTP Server (File System) Download User is prompted for username/password when downloading a file Username/password is not required when a file can be accessed from the default permission (from RpHSSetDefaultGroupId)
19
HTTP Server (File System) RpHSSetCurrentDirectory –Setup the directory for the current connection RpHSGetErrorStatus –Get the status for the current connection RpHSSetDefaultGroupId –Setup default group id. –This group id is used for retrieving a file. If a file can be retrieved for the default group id access, no username or password is required. RpHSGetDefaultGroupId –Return default group id
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.