Ivan Grokhotkov
a6e01b8d27
Fix handling of / to load index.htm ( #1085 )
...
Thanks @sticilface
2015-11-30 08:43:08 +03:00
Ivan Grokhotkov
5a2af5419b
WebServer: catch the case when request isn't handled
...
If RequestHandler::canHandle returns true, but subsequent RequestHandler::handle returns false, we should return some HTTP response instead of an empty one.
2015-11-30 08:42:00 +03:00
Markus Sattler
a27029cbc5
see #395
...
server.send() already injects the "Connection" and "Access-Control-Allow-Origin" headers.
No point in doing that twice. (browsers could get confused)
2015-11-27 09:47:06 +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
bc48022118
spend more time understanding the logic
2015-11-21 21:29:54 +02:00
Me No Dev
94a7f63cda
fix static handler
2015-11-21 21:04:07 +02:00
Me No Dev
0063d80c74
"Fix" sketches and libs to use the new upload api
2015-11-19 23:20:03 +02:00
Me No Dev
50eb6d9ff2
Make RequestHandler handle uploads
2015-11-19 22:52:52 +02:00
Ivan Grokhotkov
5b28ae23c2
Allow WiFiServer to bind to a specific address ( #997 )
...
In addition to the existing constructors (WiFiServer::WiFiServer(port) and WiFiWebServer::WiFiWebServer(port)), new constructors are added:
WiFiServer::WiFiServer(IPAddress, port) and WiFiWebServer::WiFiWebServer(IPAddress, port).
2015-11-15 20:35:52 +03:00
Andrew Melvin
5c6f98643b
Changes to static request handler
2015-11-12 07:27:21 +00:00
JohnSL
c0f8ce9d84
Exclude the terminator in sendContent_P
...
The terminator should not be sent by sendContent_P. For example, if you
have a null-terminated string, the null itself should not be sent to the
client. This change decrements the number of bytes to send so it does
not include the termination character.
2015-11-08 19:28:55 -08:00
Kaloyan Kovachev
20de6b8a6a
Add SVG as file type and default to binary stream for static handler
2015-11-01 17:59:24 +02:00
Antoine Bertin
fe3003dec3
Update status code reason phrases
...
As per RFC2616
2015-10-31 16:22:50 +01:00
Ivan Grokhotkov
0772a69b1c
Merge pull request #913 from me-no-dev/esp8266
...
Add SPIFFS WebServer Example
2015-10-28 14:54:31 +03: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
Me No Dev
4c078799ca
Add SPIFFS WebServer Example
2015-10-21 14:09:55 +03:00
John Socha-Leialoha
578c90f04c
Fixing final write length for sendContent_P
2015-10-11 13:32:10 -07:00
Ivan Grokhotkov
4c8a29a74d
Expose request handlers in ESP8266WebServer
...
as discussed in #837
2015-10-06 15:26:42 +03: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
Ivan Grokhotkov
001a129c3a
Fix heap node corruption ( #428 )
2015-09-28 11:59:34 +03:00
Ivan Grokhotkov
5e3fb60390
Merge pull request #778 from CanTireInnovations/httpOptions
...
Adding support for OPTIONS requests to ESP8266WebServer
2015-09-18 09:54:50 +03:00
Ivan Grokhotkov
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
Ivan Grokhotkov
e62d5a92b9
Fix ESP8266WebServer::serveStatic to work for both files and directories
2015-09-14 12:47:39 +03:00
Jeff Ashton
eb8c1faa51
Adding support for OPTIONS requests to ESP8266WebServer
2015-09-13 15:56:34 -04:00
Martin Ayotte
5cb086bc05
temporarly fix for handling PGM_P content_type properly in ESP8266WebServer::send_P() functions
2015-09-09 12:03:07 -04:00
Martin Ayotte
27b67f4adc
add ESP8266WebServer::send_P with contentLength argument
2015-09-06 14:17:23 -04:00
Martin Ayotte
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
Martin Ayotte
82748a872c
add ESP8266WebServer::sendContent_P with 'size_t size' argument for binary content
2015-09-06 13:27:12 -04:00
Ivan Grokhotkov
41fbe93560
AdvancedWebServer: remove mDNS from loop as well
2015-09-01 01:09:21 +03:00
Ivan Grokhotkov
143f29bc29
Fix mDNS library usage in ESP8266WebServer examples
2015-09-01 00:58:27 +03: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
Ivan Grokhotkov
43d80ee2ec
Fix forward declaration of FS
2015-08-12 22:40:21 +03:00
timw1971
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
Ivan Grokhotkov
5cbaa57af9
Resolve naming conflicts between FS and SD library
2015-08-05 08:36:43 -04:00
Ivan Grokhotkov
e8b27912d7
ESP8266WebServer: serve static files from FS
2015-08-05 07:44:00 -04:00
Ivan Grokhotkov
c0e0836a0b
Merge branch 'WifiSendP' of https://github.com/Makuna/Arduino into Makuna-WifiSendP
...
Conflicts:
README.md
2015-07-28 18:15:20 +03:00
Makuna
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
Ivan Grokhotkov
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
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