Commit Graph

95 Commits

Author SHA1 Message Date
Oliver Schmidt
3e33a4d355 Made server variant of HTTP strings a superset of the client variant again. 2015-06-08 14:29:34 +02:00
Simon Duquennoy
a9cc909794 Network layer configuration: replace UIP_CONF_* with NETSTACK_CONF_WITH_* 2014-12-01 21:02:57 +01:00
Adam Dunkels
ae5a3f9f67 Bumped the version number from 2.6 to 3.x, which is to be used in the development branch 2013-12-12 17:33:18 +01:00
Adam Dunkels
bb2dcaa057 A massive all-tree automated update of all double inclusion guard #defines that changes from using two underscores as a prefix, which are reserved, to not using two underscores as a prefix 2013-11-24 20:20:11 +01:00
Simon Duquennoy
248301a041 Fix naming issues and includes in uip-ds6-nbr.h 2013-08-19 17:48:30 +02:00
Simon Duquennoy
5dc05e7913 Port apps, examples, platforms and tools so they use the new neighbor and route API. 2013-08-19 17:48:30 +02:00
Karl Palsson
2146ee1c84 [webserver] Update urls in default data
Replace all links to sics.se with contiki.org
2013-05-21 21:19:32 +00:00
Oliver Schmidt
4938877dd9 Lifted restrictions on accepted MIME type.
The "normal" web is moving forward quickly reducing the interoperability of the Contiki web browser to nearly zero. The Mobile Web fits the capabilities of the Contiki web browser much better. Modern smartphones don't need the Mobile Web anymore but there are large areas in world with rather low end mobile phones and limited mobile bandwidth where the Mobile Web will be necessary for quite some time.

From that perspective it is reasonable to increase the Contiki web browser's interoperability with the Mobie Web - namely WAP 2.0 aka XHTML MP. XHTML MP is delivered as MIME types 'application/vnd.wap.xhtml+xml' or 'application/xhtml+xml'. Therefore we (try to) parse the document if the MIME type contains the substring 'html' (which is true 'text/html' too).
2013-02-19 00:25:36 +01:00
Adam Dunkels
99f541e8fd Updated to the latest uip-ds6-route API 2012-11-27 23:04:34 +01:00
Adam Dunkels
944537fccf Removed all old RCS tags in the Contiki source tree. Those RCS tags are not used any more, as we are now using git to manage the Contiki source tree 2012-10-26 15:54:49 +02:00
Adam Dunkels
dd148e1d12 Bumped version number 2012-07-12 11:30:05 +02:00
Niclas Finne
0d6dabe6f5 lookup content type only when needed 2012-05-29 19:28:14 +02:00
Fredrik Osterlind
a95c2cf6c1 bugfix: ptr must be preserved until psock has finished 2012-05-29 17:40:33 +02:00
Nicholas J Humfrey
efab964451 Converted u8_t to uint8_t and u16_t to uint16_t in the apps directory. 2012-02-21 08:33:25 -05:00
David Kopf
c22dd67ada Revert rules to rebuild httpd-fs.c and httpd-fsdata.c 2011-09-11 12:25:30 -04:00
David Kopf
d01df43a0c Drop unneded null byte at end of httpd-fsdata files. 2011-09-10 13:04:21 -04:00
David Kopf
44f4ee9315 Use PROCESS_NAME_STRING macro to handle NO_PROCESS_NAMES 2011-08-03 11:08:40 -04:00
David Kopf
058bb6039b Include status cgi's with explicit define 2011-06-30 12:10:16 -04:00
David Kopf
cfd3198fda Restore lines that were excluded for VC++ test build 2011-06-28 08:59:39 -04:00
David Kopf
c48b7ab78d Add RPL nodes and border router to minimal-net platform (cygwin only) 2011-06-28 08:19:48 -04:00
dak664
263f7e6ebd Insidious minimal-net segmentation fault if initialized ptr not declared static. 2011-02-19 15:43:43 -05:00
oliverschmidt
b15deeff07 Fixed bug introduced with the 8.3 filesystem support.
If we use .htm instead of .html then we should also check for .htm instead of .html when it comes to MIME type setting.

Interestingly this didn't show up when testing with Internet Explorer as that one just ignores the wrong MIME type and displays the HTML page as expected.

Thanks to Shane Wood for pointing out the issue!
2011-01-25 20:13:41 +00:00
dak664
a026c94467 Fix compiler warnings 2010-12-14 22:45:22 +00:00
adamdunkels
5585d72c86 A simple but substantial change: uIP used the htons()/HTONS() macro
functions for converting between host and network byte order. These
names are the de facto standard names for this functionality because
of the original BSD TCP/IP implementation. But they cause problems for
uIP/Contiki: some platforms define these names themselves (Mac OS,
most notably), causing compilation problems for Contiki on those
platforms.

This commit changes all htons to uip_htons instead. Same goes for
htonl, ntohs, and ntohl. All-caps versions as well.
2010-10-19 18:29:03 +00:00
oliverschmidt
a6a2d5de9f Fixed recently introduced minor inconsistency. 2010-09-29 09:35:56 +00:00
oliverschmidt
cd24e920b6 Made cfs-based webserver example compatible with 8.3 file systems. 2010-09-28 20:40:52 +00:00
oliverschmidt
a5dff5e08a Up to now the root of the webserver filesystem was always the current directory. Now an optional file 'wwwroot.cfg' is read. If present its content is used as prefix in the conversion of http paths to local paths. This prefix may be a relative path as well as an absolute path.
This is especially useful for the cc65-based targets as it ain't possible there to "just change into the wwwroot directory and start the webserver using its pathname".
2010-08-30 19:44:38 +00:00
oliverschmidt
eebbd2694c Set the maximum number of concurrent web server connections by default to the maximum number of concurrent TCP connections. 2010-04-11 20:54:39 +00:00
oliverschmidt
85082693c5 Added final newline to make GCC happy. 2010-04-11 20:16:56 +00:00
oliverschmidt
f22b0dffb3 Made CFS web server pathname length configurable via WEBSERVER_CONF_CFS_PATHLEN and increased default pathname length from 20 to 80 chars in order to allow to actually make use of subdirs. 2010-04-11 20:10:12 +00:00
oliverschmidt
eae42d02d5 Added optional URL filtering code to the CFS web server contributed by Kajtar Zsolt (and activated it by default). 2010-04-11 19:18:47 +00:00
oliverschmidt
62e6882946 Include slash in CFS web server state field 'filename' (like in the non-CFS web server). 2010-04-11 15:19:34 +00:00
oliverschmidt
157a95ef19 Reduced code size by removing one PT_WAIT_THREAD call site. 2010-04-11 12:29:07 +00:00
oliverschmidt
48f7992a48 Minor syntax simplification. 2010-04-06 20:41:42 +00:00
oliverschmidt
5a3eb98937 Log requests in PETSCII on CBMs in the non-CFS web server (as was already done in the CFS web server). 2010-04-06 20:35:40 +00:00
oliverschmidt
186ab03dd2 Search for last '.' just like in send_headers(). 2010-04-06 20:16:25 +00:00
oliverschmidt
37d5c753c0 Copy '/404.html' to filename in order to allow send_headers() to send the proper content type. 2010-04-06 20:10:45 +00:00
oliverschmidt
d1c4b4968c Added GIF support to the CFS web server (which was already present in the non-CFS web server). 2010-04-06 12:11:41 +00:00
oliverschmidt
69b0727a6d There are no query strings or alike in the CFS web server so the file extensions have to be the actual end of the requested filename. 2010-04-06 12:03:18 +00:00
oliverschmidt
5c75b89ef7 Reduced code size by reducing the SEND_STRING call sites. 2010-04-06 11:49:47 +00:00
oliverschmidt
2a6f169e46 - Added yet another PETSCII->ASCII conversion, this time for the file name in case of a 404.
- Use all lowercase for the 404 message to avoid another PETSCII->ASCII conversion.
- Write logfile entries for all 404s.
- Adjust memory buffers on the C128 to accomodate for the items above.
2010-02-03 23:19:39 +00:00
adamdunkels
815468b442 Added missing argument to send_string() 2010-02-03 21:06:51 +00:00
adamdunkels
6fc0c73bac Reverted the recent addition of the directory listing: instead, a 404 is now sent to indicate that a notfound.html file is missing 2010-02-03 20:41:16 +00:00
adamdunkels
e029cf489e When a file was not found, and no notfound.html was found, send directory contents instead 2010-02-02 18:17:55 +00:00
adamdunkels
4938df5c05 Update to Contiki version number 2.4 2010-01-29 18:03:55 +00:00
dak664
0798c56899 Print ipv6 address in weblog and tcp_stats cgi 2009-08-12 18:23:37 +00:00
dak664
8d9f8e3a17 ipv6 address logging 2009-08-11 16:07:54 +00:00
fros4943
51006b3f8d webserver bugfix, caused nightly wget test to fail:
* too many timer_reset will naively increase the start-time, even though timer has not expired. use timer_restart instead
2009-02-09 13:04:37 +00:00
adamdunkels
80c71c9f03 Updated version number in server and user agent strings 2008-11-09 12:27:58 +00:00
adamdunkels
28d52894a0 Reverted raven changes, which are now in the raven-webserver directory 2008-10-14 11:07:57 +00:00