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
net/web-net4-script.c@109:3e82f62c7e1f, 2019-04-29 (annotated)
- Committer:
- andrewboyson
- Date:
- Mon Apr 29 14:45:30 2019 +0000
- Revision:
- 109:3e82f62c7e1f
- Parent:
- 103:91194cc19bbb
Tidied names from http to web
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| andrewboyson | 86:f3c9beec4ee7 | 1 | #include "http.h" |
| andrewboyson | 86:f3c9beec4ee7 | 2 | |
| andrewboyson | 86:f3c9beec4ee7 | 3 | //Use http://tomeko.net/online_tools/cpp_text_escape.php to convert from text to c-multiline |
| andrewboyson | 86:f3c9beec4ee7 | 4 | //Use http://tomeko.net/online_tools/cpp_text_unescape.php to convert from c-multiline to text |
| andrewboyson | 86:f3c9beec4ee7 | 5 | |
| andrewboyson | 103:91194cc19bbb | 6 | const char* WebNet4ScriptDate = __DATE__; |
| andrewboyson | 103:91194cc19bbb | 7 | const char* WebNet4ScriptTime = __TIME__; |
| andrewboyson | 86:f3c9beec4ee7 | 8 | |
| andrewboyson | 86:f3c9beec4ee7 | 9 | static const char* script = |
| andrewboyson | 103:91194cc19bbb | 10 | #include "../base/web-ajax-class.inc" |
| andrewboyson | 103:91194cc19bbb | 11 | #include "web-net-class.inc" |
| andrewboyson | 103:91194cc19bbb | 12 | #include "web-net4-script.inc" |
| andrewboyson | 86:f3c9beec4ee7 | 13 | ; |
| andrewboyson | 103:91194cc19bbb | 14 | void WebNet4Script() |
| andrewboyson | 86:f3c9beec4ee7 | 15 | { |
| andrewboyson | 103:91194cc19bbb | 16 | HttpOk("application/javascript; charset=UTF-8", "max-age=3600", WebNet4ScriptDate, WebNet4ScriptTime); |
| andrewboyson | 86:f3c9beec4ee7 | 17 | HttpAddText(script); |
| andrewboyson | 86:f3c9beec4ee7 | 18 | } |