Gregory Nutt
39ad02f72e
netutils/webserver: Fix a few complaints from nutts/tools/nxstyle.
2019-07-04 21:21:26 -06:00
Masayuki Ishikawa
0b352178c1
Merged in masayuki2009/nuttx.apps/add_dirlist_to_webserver (pull request #181 )
...
netutils/webserver: Add directory listing to httpd
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-07-05 02:58:53 +00:00
Masayuki Ishikawa
b12b61df69
Merged in masayuki2009/nuttx.apps/fix_webserver (pull request #179 )
...
apps/examples/webserver: Fix to compile with CONFIG_NETUTILS_HTTPD_SENDFILE=y
Also, in this PR, some configs such as CONFIG_NETUTILS_HTTPDFILESTATS
can be selected by menuconfig.
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-07-03 12:20:29 +00:00
Gregory Nutt
d3c36663d0
netutils/webserver: Contributed by "Anonymous" via attachment to Bitbucket issue #135 : "webserver broken when scripting support enabled - support for chunked encoding fixes it"
...
The webserver/httpd app is currently broken when script support is enabled (CONFIG_NETUTILS_HTTPD_SCRIPT_DISABLE). The root cause has been tracked down to the "Content-length" not being available ahead of time in this case (length of -1 passed to send_headers() ). On the other hand, the server closing the socket does not result in FIN being sent to the browser either (FIN not supported by NuttX yet).
Simple solution: Add support for HTTP Chunked Encoding to webserver/httpd (attached patch).
The attached patch is simple. It adds a configuration option to enable chunked encoding. When enabled, the implementation will auto-detect the cases where content length is not available ahead of time, and will automatically engage chunked encoding transfers.
Without this patch, the browser/client hangs forever, as it is expecting more data. With this patch, the browser displays the content.
2018-11-23 10:13:34 -06:00
Maciej Wójcik
c58bfb7f84
The CONFIG_NETUTILS_HTTPD_PATH constant is used by httpd_mmap.c and httpd_sendfile.c but It was not present in Kconfig menu.
2017-03-05 10:36:01 +00:00
Gregory Nutt
d5b6949c9f
Fix references to the no-longer-existent misc/ directory in comments, README files, and documentation
2015-06-28 08:14:53 -06:00
Gregory Nutt
767f1b2993
Fix netutils configuration issues: CONFIG_NETUTILS_HTTPD_SENDFILE was missing from Kconfig; CONFIG_NET_HAVE_SOLINGER should be CONFIG_NET_SOLINGER; Type of CONFIG_NET_HTTPD_MAXPATH was wrong in Kconfig file. From Max
2014-07-11 12:30:23 -06:00
Gregory Nutt
80f8944eeb
Fixes for networking and tiny webserver from Max
2014-06-29 09:30:09 -06:00
Gregory Nutt
b9cf7acb1a
More trailing whilespace removal
2014-04-13 16:24:28 -06:00
Gregory Nutt
73e10bd839
New touchscreen scaling algorithm for the case where measured X values vary with y position (and vice versa)
2013-10-17 12:07:14 -06:00
Gregory Nutt
acd37d95e4
Various Kconfig files still have references to CONFIG_ variables. Some in harmless comments, some in config definionts which is not harmless. All removed
2013-04-25 15:52:00 -06:00
patacongo
3debbf0832
Adds support for keep-alive connections to webserver
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5178 42af7a65-404d-4744-a932-0658087f49c3
2012-09-22 20:36:36 +00:00
patacongo
350a1d15fc
Add support for Fire STM32v3; sscanf fixes from Kate
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5168 42af7a65-404d-4744-a932-0658087f49c3
2012-09-21 17:32:30 +00:00
patacongo
e323da1c24
Fix ording of bytes in ENC28J60 MAC address; Web server refactoring from Kate
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5159 42af7a65-404d-4744-a932-0658087f49c3
2012-09-18 12:34:43 +00:00
patacongo
503886bf78
Fix ENC28J60 Tx transmit (still a receive problem); Add HTTP 408 logic from Kate
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5158 42af7a65-404d-4744-a932-0658087f49c3
2012-09-17 23:02:58 +00:00
patacongo
0e46b2be82
Add option for single connection web server. From Kate.
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5157 42af7a65-404d-4744-a932-0658087f49c3
2012-09-17 19:44:53 +00:00
patacongo
44fe9459c0
Add support for DMA memory allocator to FAT file system
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5127 42af7a65-404d-4744-a932-0658087f49c3
2012-09-11 13:53:44 +00:00
patacongo
c87dcca676
AVR corrections from Richard Cochran; uIP webserver enhancements from Kate
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5126 42af7a65-404d-4744-a932-0658087f49c3
2012-09-11 13:19:59 +00:00
patacongo
991f372a47
Add URL/CGI function mapping option to uIP web server
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5096 42af7a65-404d-4744-a932-0658087f49c3
2012-09-05 18:03:37 +00:00
patacongo
71c8ad54cf
Syntax error in last apps/netutils/webserver/Kconfig
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5089 42af7a65-404d-4744-a932-0658087f49c3
2012-09-04 18:01:54 +00:00
patacongo
0c8089ebfa
Enhancements to the uIP web server from Kate
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5088 42af7a65-404d-4744-a932-0658087f49c3
2012-09-04 16:59:24 +00:00
patacongo
3766aebbb4
Developing a new way to handle application configurations
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4609 42af7a65-404d-4744-a932-0658087f49c3
2012-04-14 20:01:08 +00:00
patacongo
fd496ea42f
Add kconfig documentation
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4567 42af7a65-404d-4744-a932-0658087f49c3
2012-04-06 16:45:52 +00:00
patacongo
3fe79ff511
Adding skeleton Kconfig files (part 3 of 2)
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4566 42af7a65-404d-4744-a932-0658087f49c3
2012-04-06 16:33:17 +00:00