A simple web server that can be bound to either the EthernetInterface or the WiflyInterface.

Dependents:   Smart-WiFly-WebServer WattEye X10Svr SSDP_Server

Revisions of SW_HTTPServer.cpp

Revision Date Message Actions
59:9a71ac02c782 2019-02-26 Update server handler and memory allocation File  Diff  Annotate
58:5303e962f711 2018-11-18 Use secure versions of strcpy, strcat. File  Diff  Annotate
57:fb81057b4d77 2018-07-10 Adjust the blocking and non-blocking interfaces. File  Diff  Annotate
56:df915cb8ba9a 2018-07-10 Change socket i/f to blocking File  Diff  Annotate
55:238dd90b6fb3 2018-07-02 Fixed a defect where it was failing to reply. When it experienced a timeout waiting, the state machine transferred to a different state rather than continuing to wait for a request. This was a huge improvement. File  Diff  Annotate
54:435bf9b66b2b 2018-06-10 Revert to last stable File  Diff  Annotate
53:e5d96abe5e9b 2018-06-10 Intermediate check-in File  Diff  Annotate
52:611a3b360f8c 2017-12-03 tiny code cleanup File  Diff  Annotate
51:758601b9bacd 2017-04-11 Adjusted listen to handle a backlog of 5 transactions. File  Diff  Annotate
50:10db483f5154 2017-04-10 a little optimization of the header( ) function. File  Diff  Annotate
49:cd391662f254 2017-04-09 Integrate the blocking time parameter into the code.; Correct/improve the documentation for sending custom headers. File  Diff  Annotate
48:078adbe279ac 2017-04-08 Minor change - an additional optional parameter on the constructor that defines the blocking time (in msec) when Poll() is called. The default was way too long for most needs. File  Diff  Annotate
47:4c29c8f0cff2 2017-02-05 Added javascript (.js) to the default list of file types. File  Diff  Annotate
45:360c7c1d07b7 2016-04-11 Modified the timeout on the set_blocking call File  Diff  Annotate
44:71f09e4255f4 2016-03-26 Significant changes; unfortunately as a breaking change. The header() API is where the breaking change is, and will require a small amount of source-code change by the users. Improvements to efficiency, parsing of different methods, and responses. File  Diff  Annotate
43:3fc773c2986e 2015-02-02 Corrected a defect where one of the HTTPServer parameters was not being used as planned - for parsing header items.; Updating the mbed library, make it easy to run on the Application Board (shows IP address on the LCD).; Not quite 100% yet. File  Diff  Annotate
42:0d5b682bb17a 2014-09-03 Fixed some bugs regarding processing of post stuff (it checked if received was smaller or equal to what it should receive instead of smaller, and a debug statement caused a lock up in some situations). File  Diff  Annotate
41:6f2f1fb96742 2014-09-03 CC3000 support (modified some blocking for it, required for rev 46), fixed close connection, added a debug message in send command. File  Diff  Annotate
40:02c49fadbb94 2014-09-01 Trivial documentation changes. File  Diff  Annotate
39:0427544a5c08 2014-09-01 Removed requirement for WiFly module - permitting any Ethernet compatible interface.; Improved the processing of POST method. File  Diff  Annotate
38:c8fa31e6fe02 2014-07-26 Starting to remove Wifly dependence.; The last is the published stable version, this one is experimental. File  Diff  Annotate
37:0cb2774e2410 2014-05-11 Enhanced to support POST as well as GET methods. File  Diff  Annotate
36:1bb5fa6b109c 2014-05-02 Small update to disable DEBUG output and to swap from modserial to RawSerial. File  Diff  Annotate
35:2d756262d095 2014-01-04 A small change to diagnostics only. File  Diff  Annotate
34:019212c05980 2014-01-04 Remove a diagnostic message. File  Diff  Annotate
33:ef165a67ab22 2014-01-03 Numerous changes related to debug, and cache management, as well as for routing transactions from a POST command. File  Diff  Annotate
32:7ded9bacb546 2013-12-30 Explore how to pass chunks received to client app File  Diff  Annotate
31:8f72be717a3c 2013-11-28 Debug turned off. File  Diff  Annotate
30:864843965b40 2013-10-12 Removed a bit of debugging that hasn't brought value in a while - malloc and free. File  Diff  Annotate
29:00116fc9da74 2013-10-11 Picked up new MODSERIAL lib from Erik Olieman, which captures stdout. File  Diff  Annotate
28:f93ef41b78e1 2013-10-11 Revised the return value from the callback in preparation for more complex transactions. File  Diff  Annotate
27:90a1f5a5392f 2013-10-10 Diagnostic improvements. File  Diff  Annotate
26:38102ef2b132 2013-10-10 Dead code elimination File  Diff  Annotate
25:f7d6df7a700a 2013-10-10 Small change in the diagnostic print File  Diff  Annotate
24:062431453abb 2013-10-10 Added GetWebRoot API File  Diff  Annotate
23:6963f45e950a 2013-10-10 Enhanced debugging, but this version does not work. It hangs in the SendResponse, for reasons unknown. File  Diff  Annotate
22:55974de690c1 2013-10-10 documentation updates. File  Diff  Annotate
21:660143f20b04 2013-09-26 Making one API deprecated - the one which fetches the IP of the connected client. This is based on the WiflyInterface, and makes that more compatible with EthernetInterface. File  Diff  Annotate
20:786aa5749007 2013-09-14 Reduce dependency on Wifly toward more standardized socket interface. File  Diff  Annotate
19:7677fce798fa 2013-09-14 Debug turned off File  Diff  Annotate
18:6199558632c0 2013-09-14 Documentation updates only. File  Diff  Annotate
17:69ff00ce39f4 2013-09-05 Some additional performance metrics implemented which helped tune and speed it up a bit. File  Diff  Annotate
16:6ebacf2946d8 2013-09-01 Default to non-blocking mode, and some minor documentation changes. File  Diff  Annotate
14:19c5f6151319 2013-08-12 Refactor the base64 encoder and decoder.; Refactor the http server code to simplify the parsing of the header.; File  Diff  Annotate
13:8975d7928678 2013-08-12 Added Base64 Encode/Decode for simple password management File  Diff  Annotate
12:109bf1558300 2013-08-11 Added Base64 encode/decode, but not yet implementing it. File  Diff  Annotate
11:17d84c41a7b3 2013-08-04 Dead code removal, and small cleanup of the diagnostics messaging. File  Diff  Annotate
10:9c8d2c6a3469 2013-07-27 Rename a timer to better reflect its purpose.; Minor API change to avoid going direct to the Wifly module. File  Diff  Annotate
9:2ea342765c9d 2013-07-04 Minor documentation changes, and allocation of some items to const space. File  Diff  Annotate
8:262583f054f6 2013-07-01 Some refactoring while working issues with the wifly interface. File  Diff  Annotate
7:99ad7a67f05e 2013-06-27 close_connection revised to return the results from close(); Small changes for development File  Diff  Annotate
5:c9b27e718054 2013-06-25 Add API to get remote address (IP of the connected device) File  Diff  Annotate
4:f34642902056 2013-06-25 When a pointer to a buffer is passed in to the Wifly APIs that can modify that buffer, it will also pass the size of that buffer to avoid buffer overrun. File  Diff  Annotate
3:17928786bdb5 2013-06-24 Revise so buffer allocations are alterable File  Diff  Annotate
2:a29c32190037 2013-06-02 turned off debug File  Diff  Annotate
0:729320f63c5c 2013-05-31 First viable version of the Smartware HTTP Server. It handles static and dynamic pages, GET and POST methods. File  Diff  Annotate