summaryrefslogtreecommitdiff
path: root/src/server/FastCGIUtils.hs
AgeCommit message (Collapse)Author
2019-08-18remove obsolete codekrangelov
2014-09-02src/server: refactoring to isolate dependencies on the cgi/fastcgi packageshallgren
* Introducing the module CGI, re-exporting a subset of the cgi package. It might complete replace the cgi package in the future. * Introducing the module CGIUtils, containing functions from FastCGIUtils that have nothing to do with fastcgi. Some low level hackery with unsafePerformIO and global variables was left in FastCGIUtils, but it is actually not used, neither for gf -server nor exec/pgf-fcgi.hs.
2013-07-29Cloud & PGF service: use Content-Type application/json for JSON outputhallgren
This is in accordance with RFC 4627. http://tools.ietf.org/html/rfc4627 Use application/javascript for JSONP output.
2013-07-25Allow cross origin requests to GF cloud & PGF serviceshallgren
By adding a header Access-Control-Allow-Origin: * to the HTTP responses, web browsers are informed that it is OK to call the services from web pages hosted on other sites. This is apparently supported in most modern browsers, so it should no longer be necessary to resort to JSONP. See https://developer.mozilla.org/en-US/docs/HTTP/Access_control_CORS
2013-01-09PGF service: new command: downloadhallgren
This makes it possible to download PGF files from servers where the PGF service is installed. I am also considering making commmand=download the default instead of command=grammar.
2011-08-22pgf service: added a hook for external serviceshallgren
This is really reinventing CGI, people should learn how to write CGI scripts instead... TODO: better handling of temporary files
2010-12-22PGF web service: Use Content-Type text/javascript from JSON outputhallgren
The Content-Type used to be text/json, but this caused warning messages in some web browers.
2010-11-26Split pgf-server into pgf-fcgi and pgf-http.hallgren
The dependency on the fastcgi package made pgf-server difficult to compile, so it is now split into - pgf-fgci (main module in pgf-fcgi.hs), which is built only if fastcgi is already installed or if you turn on the fastcgi flag (e.g. by doing 'cabal install -f fastcgi'). - pgf-http (main module in pgf-http.hs) which is always built (and hopefully has no problematic dependencies.) The modules FastCGIUtils and PGFService no longer depend on fastcgi.
2010-07-31fix: FastCGIUtils.outputHTML should do UTF8 encodingkrasimir
2010-04-22now the PGF service communicates with Graphviz using UTF8 for the input and ↵krasimir
binary for the output
2010-04-22the pgf service now compiles with the latest CGI packagekrasimir
2009-11-29TranslateApp now have browser for abstract syntaxkrasimir
2009-10-24added tree visualizations in TranslateAppkrasimir
2009-06-04Update FastCGIUtils.hs to work with GHC 6.10krasimir
2009-01-25hack for pgf-server for Windowskrasimir
2008-11-20Fix permissions of pgf server error log.bjorn
2008-11-04pgf-server: write stderr to pgf-error.log, since lighttpd closes stderr for ↵bjorn
fastcgi processes.
2008-10-20gf-server: move some general stuff to FastCGIUtilsbjorn
2008-10-17(fastcgi) replace DataRef with a more general Cache type, which can hold ↵bjorn
several PGF grammars.
2008-10-16Multithreaded gf.fcgi.bjorn
2008-08-24gf-server: the readData function given to getData should be m a, not IO a.bjorn
2008-08-24Move CGIError stuff to FastCGIUtils.bjorn
2008-08-14Added first version of the GF FastCGI server.bjorn