aboutsummaryrefslogtreecommitdiff
path: root/src/http.c
Commit message (Collapse)AuthorAge
* use C++ map instead of Cactus hash to store page contentsrhaas2012-07-08
| | | | | | | this is because the hash size can get out of hand (GBs) git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@251 1faa4e14-9dd3-4be0-9f0e-ffe519881164
* Clean up warning messagesschnetter2005-03-01
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@218 1faa4e14-9dd3-4be0-9f0e-ffe519881164
* Add missing #include <stdio.h> statement.schnetter2004-12-30
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@216 1faa4e14-9dd3-4be0-9f0e-ffe519881164
* Concerning bug 1699:swhite2004-06-01
| | | | | | | | | Except for a few places where fprintf(stderr... is explicitly #ifdef'ed out as debug code, replaced calls with CCTK_WARN with appropriate warning levels. git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@210 1faa4e14-9dd3-4be0-9f0e-ffe519881164
* Untabified. Please try to adhere to the Cactus coding guidelines whengoodale2004-05-17
| | | | | | | modifying or adding files. git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@206 1faa4e14-9dd3-4be0-9f0e-ffe519881164
* Changed HTTPD function names in exported header files to be in betterswhite2004-05-05
| | | | | | | | | | | | | | conformance with Cactus standards: From To ---- -- HTTP_Send_OK_Header HTTP_SendOKHeader HTTP_Send_OK_Refresh_Header HTTP_SendOKRefreshHeader HTTP_Major_Version HTTP_MajorVersion HTTP_Minor_Version HTTP_MinorVersion HTTP_Arg_Name HTTP_ArgName git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@200 1faa4e14-9dd3-4be0-9f0e-ffe519881164
* Addresses Cactus bug 923swhite2004-04-19
| | | | | | | | | | | | | | | | | | | | | Made the download list to be organized by variable, then by data output type, then by slice. To facilitate list manipulation, added temporarily a list module 'PtrList', which perhaps may prove of more general use in the future. Pursuant to Cactus bug 907 Added parameter HTTPExtra::viewport_refresh_seconds to send Refresh header to web browser. Made ViewPort window to respond to viewport_refresh_seconds parameter General HTML improvements...checked with Amaya and lynx. Re-organized CSS info in HTTPD web pages. Got rid of httpuMimeType code which didn't do anything. git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@195 1faa4e14-9dd3-4be0-9f0e-ffe519881164
* Missed oneswhite2004-04-16
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@194 1faa4e14-9dd3-4be0-9f0e-ffe519881164
* Addresses Cactus bug 907swhite2004-04-16
| | | | | | | | | | | | Added ability to send HTTP Refresh header: HTTP_Send_OK_Refresh_Header Added parameter HTTP::refresh_seconds Made main content window to respond to refresh parameter setting Also Minor improvements to String module Fixed variable decarations after executable code in a block. git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@193 1faa4e14-9dd3-4be0-9f0e-ffe519881164
* Made HTTPD to correctly describe interface by INCLUDE HEADER mechanism.swhite2004-04-13
| | | | | | | | | | | | | | | | | | Changed internal names of http_Auth.h http_Cookies.h http_Steer.h http_Content.h so that HTTPD thorn developers will be required to use this interface, rather than incorrectly explicitly including the source header files. * Protected SString against C++ name mangling * Gave exported functions the HTTP_ prefix * Wrote doc/Content.h * Fixed bug that disabled some steering functionality git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@192 1faa4e14-9dd3-4be0-9f0e-ffe519881164
* 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
* 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
* 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
* Fixed debug statement.tradke2002-01-07
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@147 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
* 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
* Making rcsid strings constant - PR 669.goodale2001-05-10
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@126 1faa4e14-9dd3-4be0-9f0e-ffe519881164
* Fixed most of the compiler warnings.tradke2001-04-03
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@120 1faa4e14-9dd3-4be0-9f0e-ffe519881164
* Fixing a few warnings (lots left) and the FILE_VERSIONsallen2001-02-24
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@117 1faa4e14-9dd3-4be0-9f0e-ffe519881164
* Reworked the socket layer a bit to detect errors when writing to a socket andgoodale2000-09-21
| | | | | | | | | | | take appropriate action. Now it marks the socket closed on most errors, waits till it can write if the buffer is full, or splits the message up if the message was too big for the socket. Tom git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@72 1faa4e14-9dd3-4be0-9f0e-ffe519881164
* All reading from socket is now done with HTTP_Read. HTTP_Read and HTTP_Writegoodale2000-09-18
| | | | | | | | | now both live in Sockets.c. Tom git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@40 1faa4e14-9dd3-4be0-9f0e-ffe519881164
* Bug fix - forgot to change function when changed data structure it works on.goodale2000-09-17
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@34 1faa4e14-9dd3-4be0-9f0e-ffe519881164
* New function HTTP_ArgumentWalk to allow walking through the argument list.goodale2000-09-16
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@25 1faa4e14-9dd3-4be0-9f0e-ffe519881164
* Bugfix for query with no arguments.goodale2000-09-16
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@17 1faa4e14-9dd3-4be0-9f0e-ffe519881164
* Minor bugfix.goodale2000-09-14
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@8 1faa4e14-9dd3-4be0-9f0e-ffe519881164
* Bugfix for catching malformed URIs.goodale2000-09-14
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@6 1faa4e14-9dd3-4be0-9f0e-ffe519881164
* Initial version of C http thorn. There are still a fair number of things ongoodale2000-09-14
my to-do list, but it is fairly usable now as far as functionality is concerned. Tom git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@2 1faa4e14-9dd3-4be0-9f0e-ffe519881164