aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
...
* Regarding Cactus bug report 1632 "HTTPD contains buffer overflows"swhite2004-04-06
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1) Got rid of most strcat/sprintf into automatic array, replaced with a String module that allocates dynamic memory on the heap. 2) Went a long way toward initializing all variables. 3) Tested: Ran two copies with same parfile except different port, one with my changes, one with original. Went through different kinds of pages by hand, checked by eye. 4) Tried to make HTML XHTML 1.0-compliant. Checked with Amaya. One problem: How to deal with raw less-than characters, etc. Made a function to convert them to HTML Character Entities, but isn't clear this will work properly in the forms. So I left these symbols in the forms. 5) Also checked with more primitive browsers, lynx and dillo. 6) Marked a few instances of questionable code with 'SW' To do ----- Document a few new functions, esp. in Content.c git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@187 1faa4e14-9dd3-4be0-9f0e-ffe519881164
* Added a bit more text to the security message.goodale2004-03-30
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@185 1faa4e14-9dd3-4be0-9f0e-ffe519881164
* Added a note about security.goodale2004-03-30
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@184 1faa4e14-9dd3-4be0-9f0e-ffe519881164
* Updated configuration.ccl files. In Beta14 some of these willgoodale2004-03-27
| | | | | | | | | | | | | | disappear as function aliasing will be updated to have aliased functions either be optional or required, as opposed to optional as they are at the moment. This will thus remove the configuration.ccl files which are merely there to ensure that certain aliased functions are actually provided. Also far more stuff will be done via function aliasing which should remove some more of these dependencies. Tom git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@183 1faa4e14-9dd3-4be0-9f0e-ffe519881164
* Improve formatting by removing superfluous blanks from web pages.schnetter2004-03-24
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@182 1faa4e14-9dd3-4be0-9f0e-ffe519881164
* Update parameter files to activate thorn SymBase.schnetter2004-03-09
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@181 1faa4e14-9dd3-4be0-9f0e-ffe519881164
* Cast const void * to const pointers instead of non-const pointer.schnetter2004-01-16
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@180 1faa4e14-9dd3-4be0-9f0e-ffe519881164
* Eliminate "signed and unsigned type in conditional expression" warning.rideout2003-12-05
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@179 1faa4e14-9dd3-4be0-9f0e-ffe519881164
* Update prototypes.rideout2003-12-01
| | | | | | | Eliminate unused variable. git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@178 1faa4e14-9dd3-4be0-9f0e-ffe519881164
* CardGrid3D now inherits from CoordBaserideout2003-08-22
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@177 1faa4e14-9dd3-4be0-9f0e-ffe519881164
* Added more info to front page and fixed wrong compile date (was using theallen2003-07-05
| | | | | | | | | | | compile date just for that thorn). Fixes Cactus/1227 (except for adding start time but did not feel like adding more string functions for these, although they would be useful to have) git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@176 1faa4e14-9dd3-4be0-9f0e-ffe519881164
* Re-organised startup a bit. Now HTTP_Startup is a group.goodale2002-11-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | HTTP_Startup has three things scheduled in it, in order: HTTP_StartServer which starts the web-server GROUP HTTP_SetupPages which can be used by anything which needs to know the location of the webserver before the webserver starts listening HTTP_FirstServ which listens for connections and may sit there if httpd::pause is true. The reason for this cahnge is that I need to advertise the location of the webserver, but then have Cactus sitting in pause mode, and the old logic didn't allow this. Hopefully by not chaning the name of HTTP_Startup no existing code should be affected. Tom git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@175 1faa4e14-9dd3-4be0-9f0e-ffe519881164
* Removed unused static variable 'http_actualport'.tradke2002-07-17
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@174 1faa4e14-9dd3-4be0-9f0e-ffe519881164
* Fixed a debug message.tradke2002-07-05
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@173 1faa4e14-9dd3-4be0-9f0e-ffe519881164
* Forgot to set WaveToy::bound = "static".tradke2002-06-26
| | | | | | | Now it doesn't crash anymore on the Alphas. git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@172 1faa4e14-9dd3-4be0-9f0e-ffe519881164
* Added missing thorn PUGHReduce.tradke2002-06-24
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@171 1faa4e14-9dd3-4be0-9f0e-ffe519881164
* Added email addresses of author(s)/maintainer(s) of this thorn.tradke2002-06-07
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@169 1faa4e14-9dd3-4be0-9f0e-ffe519881164
* adding documenation templatesikelley2002-06-04
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@168 1faa4e14-9dd3-4be0-9f0e-ffe519881164
* Remove -D_LIBC as this tells header files they are internal to LIBC whichallen2002-05-20
| | | | | | | | | | is generally a bad thing and stops compilation with the latest headers from glibc. Tom git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@167 1faa4e14-9dd3-4be0-9f0e-ffe519881164
* Added thorn socket to the ActiveThorns parameter.tradke2002-05-14
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@166 1faa4e14-9dd3-4be0-9f0e-ffe519881164
* Thorn HTTPD inherits from thorn Socket now and uses its include header file.tradke2002-05-14
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@165 1faa4e14-9dd3-4be0-9f0e-ffe519881164
* Moved some functionality over into thorn Socket. Now that HTTPD inherits fromtradke2002-05-14
| | | | | | | this thorn, you need to add it to your thornlist (in addition to HTTPD). git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@164 1faa4e14-9dd3-4be0-9f0e-ffe519881164
* Catch 'Connection reset by peer' return code from socket calls.tradke2002-04-22
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@162 1faa4e14-9dd3-4be0-9f0e-ffe519881164
* Scheduled HTTP_Work before IOUtil_UpdateParFile.tradke2002-03-25
| | | | | | | This closes PR CactusBase/947. git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@161 1faa4e14-9dd3-4be0-9f0e-ffe519881164
* Just add to the description of the 'httpd::port' parameter that its settingtradke2002-03-19
| | | | | | | | will be ignored if a shell variable HTTPD_PORT is set. Just in lack of a better place for documenting this feature... git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@160 1faa4e14-9dd3-4be0-9f0e-ffe519881164
* Check for a shell variable HTTPD_PORT. If this is set take its value as thetradke2002-03-19
| | | | | | | | port number to use for HTTPD and ignore the setting of 'httpd::port'. This closes PR CactusConnect/930. git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@159 1faa4e14-9dd3-4be0-9f0e-ffe519881164
* Print a warning if 'httpd::use_pthreads' is set to "yes" but Cactus wasn'ttradke2002-03-19
| | | | | | | | configured with PTHREADS. This closes PR CactusConnect/899. git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@158 1faa4e14-9dd3-4be0-9f0e-ffe519881164
* Print HTTP connect messages only if 'HTTPD::verbose' is set to "yes".tradke2002-03-07
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@157 1faa4e14-9dd3-4be0-9f0e-ffe519881164
* Added a boolean parameter HTTPD::verbose (always steerable, defaulting to "no")tradke2002-03-07
| | | | | | | to tell whether to print HTTP connect messages or not. git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@156 1faa4e14-9dd3-4be0-9f0e-ffe519881164
* ifdef DEBUG for printf statementlanfer2002-01-31
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@154 1faa4e14-9dd3-4be0-9f0e-ffe519881164
* Fix error in code.jshalf2002-01-30
| | | | | | | SP2 doesn't like 'extern'. git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@153 1faa4e14-9dd3-4be0-9f0e-ffe519881164
* Minor mods to announce selected http port number whenjshalf2002-01-30
| | | | | | | hunting is on. git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@152 1faa4e14-9dd3-4be0-9f0e-ffe519881164
* Need to include <winsock2.h> now.tradke2002-01-07
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@150 1faa4e14-9dd3-4be0-9f0e-ffe519881164
* Replaced sleep(3) by select(2) to make it compile under windoofs.tradke2002-01-07
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@149 1faa4e14-9dd3-4be0-9f0e-ffe519881164
* Take out debug statement.tradke2002-01-07
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@148 1faa4e14-9dd3-4be0-9f0e-ffe519881164
* Fixed debug statement.tradke2002-01-07
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@147 1faa4e14-9dd3-4be0-9f0e-ffe519881164
* Don't print estimated times per iteration / to completion at iteration 0tradke2002-01-04
| | | | | | | to avoid division by zero. git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@146 1faa4e14-9dd3-4be0-9f0e-ffe519881164
* Callback functions, which serve registered pages, take a 'const cGH *'tradke2002-01-04
| | | | | | | argument now. Also fixed a small memory leak in redirection code. git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@145 1faa4e14-9dd3-4be0-9f0e-ffe519881164
* removinglanfer2001-12-10
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@144 1faa4e14-9dd3-4be0-9f0e-ffe519881164
* increased QuickLinks[524] QuickLinks[1524], was giving corrupted html code ↵lanfer2001-11-21
| | | | | | when many thorns added their pages to QuickLinks. git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@143 1faa4e14-9dd3-4be0-9f0e-ffe519881164
* Made the HTTP server more compliant with the standard - it nowgoodale2001-11-21
| | | | | | | | | | | | waits for the \r\n\r\n indicating the end of the HTTP header fields before beginning to process the request. It currently also does the same if it gets a \n\n as this is useful for debugging with telnet and I suspect other servers allow this too. Tom git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@142 1faa4e14-9dd3-4be0-9f0e-ffe519881164
* fixlanfer2001-11-13
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@141 1faa4e14-9dd3-4be0-9f0e-ffe519881164
* temp. fix to read bigger data, ignore this file, sc relatedlanfer2001-11-13
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@140 1faa4e14-9dd3-4be0-9f0e-ffe519881164
* Bugfix for announcing a redirected URL.tradke2001-11-12
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@139 1faa4e14-9dd3-4be0-9f0e-ffe519881164
* Bugfix.tradke2001-11-12
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@138 1faa4e14-9dd3-4be0-9f0e-ffe519881164
* Announce the HTTPD server URL into an HTML file "server_url.html" in directorytradke2001-11-12
| | | | | | | | | HTPPD::announce_server_url_outdir if parameter HTTPD::announce_server_url was set to "yes". This is a dirty hack for SC'01 which will probably be taken back soon. git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@137 1faa4e14-9dd3-4be0-9f0e-ffe519881164
* increasing maximal message size for http based communicationlanfer2001-11-12
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@136 1faa4e14-9dd3-4be0-9f0e-ffe519881164
* Fixed a division by zero when printing the runtime at cctk_iteration == 0.tradke2001-11-05
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@135 1faa4e14-9dd3-4be0-9f0e-ffe519881164
* gcc compiler warnings fixed.tradke2001-09-20
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@134 1faa4e14-9dd3-4be0-9f0e-ffe519881164
* Fixed ActiveThornsallen2001-09-12
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@133 1faa4e14-9dd3-4be0-9f0e-ffe519881164