578c90f04c
Fixing final write length for sendContent_P
2015-10-11 13:32:10 -07:00
4c8a29a74d
Expose request handlers in ESP8266WebServer
...
as discussed in #837
2015-10-06 15:26:42 +03:00
b4cc0c263e
Handle form upload abortion in ESP8266WebServer
...
If the client connection gets closed during a form upload,
the fileUploadHandler is notified with the new
UPLOAD_FILE_ABORTED status, and the loop is ended
gracefully.
2015-09-28 21:42:16 +02:00
001a129c3a
Fix heap node corruption ( #428 )
2015-09-28 11:59:34 +03:00
5e3fb60390
Merge pull request #778 from CanTireInnovations/httpOptions
...
Adding support for OPTIONS requests to ESP8266WebServer
2015-09-18 09:54:50 +03:00
e0da5a284f
Merge pull request #753 from martinayotte/esp8266
...
add ESP8266WebServer::sendContent_P and ESP8266WebServer::send_P with contentLength
2015-09-18 09:54:04 +03:00
e62d5a92b9
Fix ESP8266WebServer::serveStatic to work for both files and directories
2015-09-14 12:47:39 +03:00
eb8c1faa51
Adding support for OPTIONS requests to ESP8266WebServer
2015-09-13 15:56:34 -04:00
5cb086bc05
temporarly fix for handling PGM_P content_type properly in ESP8266WebServer::send_P() functions
2015-09-09 12:03:07 -04:00
27b67f4adc
add ESP8266WebServer::send_P with contentLength argument
2015-09-06 14:17:23 -04:00
1c9456ac9d
fix bug in WiFiClient::write_P/ESP8266WebServer::sendContent_P introduced few minutes ago when changing memccpy_P to memcpy_P
2015-09-06 14:14:36 -04:00
82748a872c
add ESP8266WebServer::sendContent_P with 'size_t size' argument for binary content
2015-09-06 13:27:12 -04:00
41fbe93560
AdvancedWebServer: remove mDNS from loop as well
2015-09-01 01:09:21 +03:00
143f29bc29
Fix mDNS library usage in ESP8266WebServer examples
2015-09-01 00:58:27 +03:00
00272ca5ae
Update Parsing.cpp
...
Remove DEBUG enabled by default
2015-08-23 23:48:50 +01:00
5a91c66615
Host header support
2015-08-19 13:20:01 +03:00
278c980ed8
Make file uploads using curl fail less often
2015-08-18 23:40:33 +03:00
43d80ee2ec
Fix forward declaration of FS
2015-08-12 22:40:21 +03:00
15991fb35a
Improvements to ESP8266WebServer::sendContent
...
Now makes only one call to .c_str() and using pointer tracking, rather that recalculating offset within the sending loop, to manage data window.
Moved invariant code out of the sending loop body.
2015-08-08 11:48:18 +01:00
5cbaa57af9
Resolve naming conflicts between FS and SD library
2015-08-05 08:36:43 -04:00
e8b27912d7
ESP8266WebServer: serve static files from FS
2015-08-05 07:44:00 -04:00
c0e0836a0b
Merge branch 'WifiSendP' of https://github.com/Makuna/Arduino into Makuna-WifiSendP
...
Conflicts:
README.md
2015-07-28 18:15:20 +03:00
8fa156d356
send_P, sendContent_P, and FPSTR
...
This allows for the content of server response to be stored in flash
memory.
2015-07-24 12:41:26 -07:00
496da02f14
Verify sketches as part of travis build
...
Squashed commits:
[7d1b42f] Encrypt token, skip some tests
[17b8f39] Fix sha1 example path
[f3050b1] Fix build, add webhook
[fd2c9bd] Fix build errors, update mDNS library readme
[7b87031] Make common.sh more flexible
[3ba3eb2] Test all sketches
[87beb8a] Build all sketches in esp8266 core
[f2464f1] Fix paths
[823a9ae] Remove sudo usage
[7fce734] Fix arduino commands
[619bc7d] Move all commands into travis script
[15a5ada] First attempt test runner
2015-07-23 16:06:07 +03:00
1c3225f387
post body might not be sent with the headers
...
since optimistic_yield() was implemented, at this point we might not
have the body yet, so we should give it a chance to be sent and put in
the buffer
2015-07-16 23:56:36 +03:00
a6d8253b15
fix plain post slowdown
2015-07-16 21:39:09 +03:00
cca89efbd2
lets make it possible to parse multiline plain post
2015-07-07 18:06:33 +03:00
f7212154a6
missingg the equal sign
2015-07-07 18:06:25 +03:00
3c819e998b
duh...
2015-07-07 18:06:18 +03:00
1694380caa
try to get plain json or string data
2015-07-07 18:06:08 +03:00
703ab8df64
make Update erase/write sector by sector as well
2015-07-06 12:34:55 +03:00
9d0a690421
fix WebUpload example
2015-07-06 12:34:36 +03:00
7596ed0742
inlining and enchancements
2015-07-06 12:34:09 +03:00
0d969e9760
Fixes and HTTP Post update example
...
Because eboot first erases the space required for the new sketch, and
if the new sketch is larger then the old one, with the old way, part of
the beginning of new sketch will be deleted. Therefore for now I opted
to keep the max update size either half the available space for
sketches or what's left from the first one, whichever is smaller.
To be able to create a simple post mechanism for updates, I needed to
have a way to write the new binary, without knowing it's final size, so
I added an option to the end() method. Example in the WebServer
examples.
2015-07-06 12:32:28 +03:00
e5fcdbd9e3
ESP8266WebServer: reduce amount of string copying
2015-06-24 23:58:53 +03:00
d441d8485e
allow proper content length handling
2015-06-16 00:25:34 +03:00
a409ce2e6b
fix example not working on firefox
2015-06-12 20:31:09 +03:00
fe562e6785
fix sd example returning bad json on empty folder
2015-06-09 01:34:59 +03:00
db1e033186
Remove SPIFFS wrapper
2015-05-23 10:13:59 +03:00
3422294a7f
Fix typo
2015-05-22 18:16:44 +03:00
8fdb824e11
Add setContentLength method to web server, update examples
...
related to #304
2015-05-22 17:57:30 +03:00
21d50e104c
Web server: disconnect at the end of callback, not after sendContent ( #304 )
2015-05-22 16:19:08 +03:00
2e6fe502a4
Add File System Server Example
...
Serve files from the onboard flash
Edit them with the included file manager (http://esp8266fs.local/edit )
Create simple graphs filled with sensor data with the included simple
library (example is the index page, editable through the editor)
The sketch uses the new extension for packing files into SPIFFS image
and uploading it to your ESP8266
2015-05-21 21:23:14 +03:00
866ab26433
add gzip content support for HTML File streaming
2015-05-21 14:05:00 +03:00
94850752b8
add some return headers to WebServer
2015-05-20 18:58:06 +02:00
555813545c
Make the web server not waste heap
...
added some helper methods as well
2015-05-19 14:06:34 +03:00
6971cec922
Merge pull request #260 from UECIDE/esp8266
...
Two new examples
2015-05-18 14:29:24 +03:00
1cd9cd312f
add folder api for SPIFFS
2015-05-16 02:29:26 +03:00
0897f9e2e3
fix reading bytes from incoming POST upload
...
proper error and premature connection loss should be implemented to
handle weird cases where we might not get the whole post content
2015-05-15 02:22:00 +03:00
5401d758f6
Merge branch 'esp8265' of https://github.com/esp8266/Arduino into esp8266
2015-05-14 13:31:59 +01:00