├── fs
├── img
│ ├── logo.png
│ └── sics.gif
├── cgi
│ ├── vars.cgi
│ └── upload.cgi
├── form.html
├── 404.html
├── test.html
└── index.html
├── multipart_parser.c
├── multipart_parser.h
├── http_request.h
├── fsdata_custom.c
├── cgi_handlers.c
├── fsdata.h
├── makefsdata
├── httpd_structs.h
├── fs.h
├── README.txt
├── fs.c
├── httpd_post.c
├── httpd.h
└── httpd.c
/fs/img/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ricorx7/LWIP_httpserver_POST/HEAD/fs/img/logo.png
--------------------------------------------------------------------------------
/fs/img/sics.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ricorx7/LWIP_httpserver_POST/HEAD/fs/img/sics.gif
--------------------------------------------------------------------------------
/multipart_parser.c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ricorx7/LWIP_httpserver_POST/HEAD/multipart_parser.c
--------------------------------------------------------------------------------
/multipart_parser.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ricorx7/LWIP_httpserver_POST/HEAD/multipart_parser.h
--------------------------------------------------------------------------------
/fs/cgi/vars.cgi:
--------------------------------------------------------------------------------
1 | #!/usr/bin/perl
2 |
3 | print "Content-type: text/html\n\n";
4 | print "Environment\n";
5 |
6 | foreach (sort keys %ENV) {
7 | print "$_: $ENV{$_}
\n";
8 | }
9 |
10 | 1;
--------------------------------------------------------------------------------
/http_request.h:
--------------------------------------------------------------------------------
1 | /*
2 | * http_request.h
3 | *
4 | * Created: 2/9/2018 1:05:04 PM
5 | * Author: rico
6 | */
7 |
8 |
9 | #ifndef HTTP_REQUEST_H_
10 | #define HTTP_REQUEST_H_
11 |
12 | typedef struct http_request {
13 | char *uri;
14 | char *post_data;
15 | uint8_t is_post;
16 | char *params;
17 | } HTTPRequest;
18 |
19 |
20 | #endif /* HTTP_REQUEST_H_ */
--------------------------------------------------------------------------------
/fs/form.html:
--------------------------------------------------------------------------------
1 |
2 |
7 |
9 | |
10 | lwIP - A Lightweight TCP/IP Stack11 |404 - Page not found12 |13 | Sorry, the page you are requesting was not found on this 14 | server. 15 | 16 | | 17 | 18 | |
7 |
9 | |
10 | RTI - This is a test page11 |12 | The web page you are watching was served by a simple web 13 | server running on top of the lightweight TCP/IP stack lwIP. 15 | 16 |17 | 23 | 24 | | 25 | 26 | |
7 |
9 | |
10 | RTI - LWIP Test Page11 |12 | The web page you are watching was served by a simple web 13 | server running on top of the lightweight TCP/IP stack lwIP. 15 | 16 |17 | lwIP is an open source implementation of the TCP/IP 18 | protocol suite that was originally written by Adam Dunkels 19 | of the Swedish Institute of Computer Science but now is 20 | being actively developed by a team of developers 21 | distributed world-wide. Since it's release, lwIP has 22 | spurred a lot of interest and has been ported to several 23 | platforms and operating systems. lwIP can be used either 24 | with or without an underlying OS. 25 | 26 |27 | The focus of the lwIP TCP/IP implementation is to reduce 28 | the RAM usage while still having a full scale TCP. This 29 | makes lwIP suitable for use in embedded systems with tens 30 | of kilobytes of free RAM and room for around 40 kilobytes 31 | of code ROM. 32 | 33 |34 | More information about lwIP can be found at the lwIP 35 | homepage at http://www.sics.se/~adam/lwip/. 37 | 38 | | 39 | 40 | |
Thanks for uploading your photo!
64 |Your email address: $email_address
65 |First Name: $first_name
66 |Last Name: $last_name
67 |Your photo:
68 |