Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: oldheating gps motorhome heating
base/net/web-net6-script.c@130:9a5b8fe308f1, 2019-09-24 (annotated)
- Committer:
- andrewboyson
- Date:
- Tue Sep 24 18:16:47 2019 +0000
- Revision:
- 130:9a5b8fe308f1
- Parent:
- 113:23507d14f927
Added http
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
andrewboyson | 110:8ab752842d25 | 1 | #include "http.h" |
andrewboyson | 110:8ab752842d25 | 2 | |
andrewboyson | 110:8ab752842d25 | 3 | //Use http://tomeko.net/online_tools/cpp_text_escape.php to convert from text to c-multiline |
andrewboyson | 110:8ab752842d25 | 4 | //Use http://tomeko.net/online_tools/cpp_text_unescape.php to convert from c-multiline to text |
andrewboyson | 110:8ab752842d25 | 5 | |
andrewboyson | 110:8ab752842d25 | 6 | const char* WebNet6ScriptDate = __DATE__; |
andrewboyson | 110:8ab752842d25 | 7 | const char* WebNet6ScriptTime = __TIME__; |
andrewboyson | 110:8ab752842d25 | 8 | |
andrewboyson | 110:8ab752842d25 | 9 | static const char* script = |
andrewboyson | 113:23507d14f927 | 10 | #include "../common/web-ajax-class.inc" |
andrewboyson | 110:8ab752842d25 | 11 | #include "web-net-class.inc" |
andrewboyson | 110:8ab752842d25 | 12 | #include "web-net6-script.inc" |
andrewboyson | 110:8ab752842d25 | 13 | ; |
andrewboyson | 110:8ab752842d25 | 14 | void WebNet6Script() |
andrewboyson | 110:8ab752842d25 | 15 | { |
andrewboyson | 110:8ab752842d25 | 16 | HttpOk("application/javascript; charset=UTF-8", "max-age=3600", WebNet6ScriptDate, WebNet6ScriptTime); |
andrewboyson | 110:8ab752842d25 | 17 | HttpAddText(script); |
andrewboyson | 110:8ab752842d25 | 18 | } |