Virgil Borcea
d0a4900e2d
* extra validation breaking POST/DELETE rest calls ( #4003 )
2017-12-20 22:28:37 -03:00
david gauchard
58937dd489
check nullptr in ESP8266WebServer ( #3958 )
2017-12-14 14:38:44 +08:00
Christian Schuster
2fbc619569
allocate HTTPUpload struct on demand ( #2557 )
2017-10-22 13:58:53 +08:00
probonopd
1843030b8a
Allow for double quotes in boundary ( #3455 )
...
as per https://tools.ietf.org/html/rfc2046#section-5.1.1
2017-09-12 07:41:54 -05:00
teejaydub
3b60f75635
Fix to parse parameters in the URL of a POST with empty content. ( #3398 )
2017-08-07 19:04:03 +03:00
Stephan Schreiber
f5b6e16474
Fixed: urlDecode done before parsing args ( #2956 )
2017-08-01 12:54:31 +03:00
Rodion Kvashnin
2126146e20
Fix warnings ( #2881 )
...
* Suppressed -Wunused-parameter and -Wunused-function by casting to void unused identifiers.
* Explicit initialization of all fields to suppress -Wmissing-field-initializers.
* Fixed signed/unsigned integer comparison.
* memset initialization of structs.
* More -Wunused-parameter fixes.
2017-01-31 10:07:59 +03:00
Me No Dev
4897e0006b
match headers using equalsIgnoreCase ( #2474 )
...
Should fix: https://github.com/esp8266/Arduino/issues/2131
2016-09-02 11:49:14 +03:00
Me No Dev
0d996ab75e
fix plain post content containing special chars being parsed as arguments ( #2241 )
...
this solution actually keeps the content as is, as long as it's text
(does not contain zeroes)
2016-07-07 00:59:26 +03:00
Me No Dev
e7a529eb45
Fix missing separator between get and post arguments ( #2222 )
...
* fix urlDecode points
Fixes:
https://github.com/esp8266/Arduino/issues/1989
https://github.com/esp8266/Arduino/issues/2198
* Add missing separator between get and plain post arguments
2016-07-04 09:08:31 +03:00
Me No Dev
af06847f4a
fix urlDecode points ( #2212 )
...
Fixes:
https://github.com/esp8266/Arduino/issues/1989
https://github.com/esp8266/Arduino/issues/2198
2016-07-01 02:37:15 +03:00
Me No Dev
6390cf6bd6
Chunked encoding ( #2199 )
...
* Add chunked encoding
example:
```cpp
server.on("/chunked", HTTP_GET, [](){
server.send(200, "text/html", String());
server.sendContent("<!DOCTYPE html><html><head><title>Chunked
Test</title></head><body>");
server.sendContent("<p>Chunk 1</p>");
server.sendContent("<p>Chunk 2</p>");
server.sendContent("<p>Chunk 3</p>");
server.sendContent("<p>Chunk 4</p>");
server.sendContent("<p>Chunk 5</p>");
server.sendContent("<p>Chunk 6</p>");
server.sendContent("</html>");
server.sendContent("");//end of chunked
});
```
* update examples, keep setContentLength and add bool _chunked
* fix wrong session id
* set _chunked to false earlier for cases where users use only sendContent
2016-06-28 14:35:12 +08:00
Ivan Grokhotkov
f6516b004f
ESP8266WebServer: fix handling of empty POST
...
Fix handling of case when Content-Length is 0.
Change do {} while() loop into while(){} so that we don't wait 1000ms for data in case Content-Length is 0.
Also fix handling of cases when malloc or realloc return null.
2016-04-18 10:33:10 +03:00
Górász Péter
b72cf2cdcf
if data loss, exit
2016-04-13 08:20:07 +02:00
Peter
41bd7af07e
slow client/network read fix
2016-04-11 16:36:37 +02:00
gpepe
502c45c157
Update Parsing.cpp
2016-04-08 04:40:51 +02:00
gpepe
3a95fb5a94
Update Parsing.cpp
2016-04-07 23:32:04 +02:00
gpepe
8c675236c7
Update Parsing.cpp
...
Complete read POST/GET request.
2016-04-07 22:22:16 +02:00
Markus Sattler
2b23b005aa
allow control of enabling debug and debug level from IDE
2016-01-02 12:25:39 +01:00
Me No Dev
a44632b8cf
make compiler happier
2015-11-25 18:11:16 +02:00
Ivan Grokhotkov
5422eab480
Merge pull request #1075 from edog1973/master
...
Fix: WebServer eating first char from header value
2015-11-25 15:58:32 +03:00
Eric Wilkison
319caba240
Fix: WebServer eating first char from header value
2015-11-23 12:39:40 -08:00
Joost Jager
ac8cfa0143
Merge branch 'master' into master
2015-11-23 21:22:42 +01:00
Joost Jager
34fcc911bc
Url decode added for search parameters
2015-11-22 15:57:32 +01:00
Me No Dev
50eb6d9ff2
Make RequestHandler handle uploads
2015-11-19 22:52:52 +02:00
luc
ee0b8621f3
Add header access using same method as arguments 2
...
based on @brianensor PR
+sample and some sanity check
2015-10-28 13:58:53 +08:00
Miguel Angel Ajo
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
Jeff Ashton
eb8c1faa51
Adding support for OPTIONS requests to ESP8266WebServer
2015-09-13 15:56:34 -04:00
sticilface
00272ca5ae
Update Parsing.cpp
...
Remove DEBUG enabled by default
2015-08-23 23:48:50 +01:00
aalku
5a91c66615
Host header support
2015-08-19 13:20:01 +03:00
Ivan Grokhotkov
278c980ed8
Make file uploads using curl fail less often
2015-08-18 23:40:33 +03:00
Me No Dev
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
Me No Dev
a6d8253b15
fix plain post slowdown
2015-07-16 21:39:09 +03:00
John Doe
cca89efbd2
lets make it possible to parse multiline plain post
2015-07-07 18:06:33 +03:00
John Doe
f7212154a6
missingg the equal sign
2015-07-07 18:06:25 +03:00
John Doe
3c819e998b
duh...
2015-07-07 18:06:18 +03:00
John Doe
1694380caa
try to get plain json or string data
2015-07-07 18:06:08 +03:00
ficeto
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
Ivan Grokhotkov
3c9d1f20bb
Merge branch 'ficeto-esp8266' into esp8266
...
* ficeto-esp8266:
add template methods for stream to stream writes to SD and FS
alignment not needed. we use fixed addresses
Rework SPIFFS API to be more Arduino like
fix missed edits
disable automount
fix SPIFFS to work
pull get/set NoDelay for WiFiClient
Add SPIFFS Support
export sketch data folder to the build config
Revert "Revert "Edit SD Server example to use the new Write(Stream) method""
add template client write
Revert "Add WiFiClient.write for Stream"
Revert "Edit SD Server example to use the new Write(Stream) method"
Edit SD Server example to use the new Write(Stream) method
Add WiFiClient.write for Stream
make upload callback packets aligned to defined size
Conflicts:
hardware/esp8266com/esp8266/libraries/ESP8266WebServer/examples/SDWebServer/SDWebServer.ino
hardware/esp8266com/esp8266/libraries/ESP8266WebServer/src/ESP8266WebServer.cpp
hardware/esp8266com/esp8266/libraries/ESP8266WebServer/src/ESP8266WebServer.h
2015-05-14 14:38:22 +03:00
Ivan Grokhotkov
36d0968ada
Web server refactoring
2015-05-14 13:33:12 +03:00