Commit Graph

1020 Commits (037009fefea51df1531d825a3d1bd6e3af6f481a)

Author SHA1 Message Date
IceArmy 7567752d2b Don't send body or content-length header under certain conditions
We have to include this check for the content-length header (since it's auto generated), however, the script is supposed to take care of not sending any message body; but we've taken care of that anyways, to conform a little more to standards.
2011-12-04 22:44:39 -08:00
IceArmy 18e9575f9d Update comments for patched function 2011-12-04 22:01:54 -08:00
IceArmy 5c176eb32a Fix bug where when using sendError, headers were sent again, causing headers to show in the body
Also did a much nicer job of cleaning up the code
2011-12-04 19:18:54 -08:00
IceArmy d9bb34b257 Oops! That should be a str, not int. 2011-12-04 17:56:14 -08:00
IceArmy 2cc3f636bc WebServer can send error pages with a simple call 2011-12-04 15:25:01 -08:00
IceArmy 02fe5f6018 Add hooks to webserver.py 2011-12-04 09:41:54 -08:00
IceArmy 235611ec2f Do a little cleanup
Improved CaseInsensitiveDict a little.
Added some more messages for the method patch.
Added a break in a for loop
2011-12-03 23:04:08 -08:00
IceArmy c12030cd66 Clear self.m_servers at script exit 2011-12-03 17:16:10 -08:00
IceArmy f1f2d275c5 Regenerate resources 2011-12-02 16:03:52 -08:00
IceArmy b3a589aaa7 This is the basic web server functionality.
http://code.google.com/p/phantomjs/issues/detail?id=115
2011-12-02 16:02:52 -08:00
IceArmy f94b87551d Probably best to take the base of the UnicodeError exceptions... 2011-11-30 11:35:44 -08:00
IceArmy 60b8d6b347 Fix bug where unicode characters in script arguments weren't correctly passed along. 2011-11-30 11:23:40 -08:00
Viorel Dram 2ffcd1375f Passed test results failed count as exit code 2011-11-29 11:39:09 +02:00
IceArmy 424214361a Further refactoring
Modified utils a bit to remove the problem of future circular imports
Cleaned up main pyphantomjs file
Cleaned up a little of the code
2011-11-27 10:56:12 -08:00
IceArmy 4ec8df3a84 Refactor arguments system
Arguments stuff now contained in its own file
Use a defaults dict to change default in only one place
2011-11-26 17:13:13 -08:00
IceArmy 4dc051a60e Added ability to specify SOCKS5 proxy type.
http://code.google.com/p/phantomjs/issues/detail?id=266
2011-11-25 11:27:03 -08:00
Ariya Hidayat ac95479424 Merge pull request #166 from jgornick/add-socks5-proxy
Added ability to specify SOCKS5 proxy type.

http://code.google.com/p/phantomjs/issues/detail?id=266
2011-11-21 20:47:56 -08:00
Ariya Hidayat 6c0f723aa9 Merge pull request #175 from jonleighton/fix_mongoose
Explicitly link to libdl

http://code.google.com/p/phantomjs/issues/detail?id=115
2011-11-21 10:16:43 -08:00
Jon Leighton 717c4af108 Explicitly link to libdl 2011-11-21 18:12:23 +00:00
Ariya Hidayat 61f4434247 Merge pull request #174 from KDAB/inspector-for-upstream
http://code.google.com/p/phantomjs/issues/detail?id=6
2011-11-16 20:43:59 -08:00
Ariya Hidayat f77046ea16 Merge pull request #173 from KDAB/git-build
Add Qt 4.8 support to deploy script, along with some patches to Qt.

http://code.google.com/p/phantomjs/issues/detail?id=197
http://code.google.com/p/phantomjs/issues/detail?id=6
http://code.google.com/p/phantomjs/issues/detail?id=163
2011-11-16 20:40:32 -08:00
Leo Franchi d5b2d110fb Add patches 2011-11-15 22:29:59 -05:00
Leo Franchi f22877d625 Add Qt 4.8 support to deploy script, along with some patches to qt 2011-11-15 19:36:14 -05:00
Leo Franchi fbdbcd7f69 Minor fixes 2011-11-15 19:11:42 -05:00
Leo Franchi 610fb41922 Add support for remotely debugging a script.
This adds a new parameter --remote-debugger-port=<port>. When set,
phantomjs is operating in debug mode and will expose a webkit remote
debugger on the desired port. It can be attached to from any WebKit
browser on the given port and debugged.
2011-11-15 19:02:06 -05:00
Ariya Hidayat fa4391d514 Merge pull request #172 from KDAB/webserver-cleaned
This is the basic web server functionality.

http://code.google.com/p/phantomjs/issues/detail?id=115
2011-11-15 08:11:24 -08:00
Milian Wolff 46a5ccf1e5 extend webserver test 2011-11-15 13:45:17 +01:00
Milian Wolff bd2052631f basic unit testing for WebServer.listen 2011-11-15 13:45:11 +01:00
Milian Wolff 5eaf705955 basic unit test for webserver 2011-11-15 13:45:11 +01:00
Milian Wolff 667c585424 don't deadlock, could happen on error
i.e. if we tried to listen to an already used port, the error
was propagated in the main thread and the blockingqueuedconnection
would deadlock. not anymore
2011-11-15 13:45:11 +01:00
Milian Wolff 36e8a3e87c cleanup api 2011-11-15 13:45:11 +01:00
Milian Wolff e5a35d6416 some API dox 2011-11-15 13:45:11 +01:00
Milian Wolff 6376ff0cb9 --debug 2011-11-15 13:45:11 +01:00
Milian Wolff a6bde751a9 extend WebServerResponse API 2011-11-15 13:45:11 +01:00
Milian Wolff 705eda8823 add read-properties to WebServerRequest 2011-11-15 13:45:11 +01:00
Milian Wolff 245eec551f make it possible to access the request headers 2011-11-15 13:45:11 +01:00
Milian Wolff f30bfa9fb7 extend WebServerRequest API 2011-11-15 13:45:11 +01:00
Milian Wolff 0abdc7f9ed very basic response + request handling for WebServer
the api is very limited but already makes the server.js example
do something useful with the server
2011-11-15 13:45:11 +01:00
Milian Wolff 73705e484b first work towards a WebServer
this is the minimal server that gets properly embedded into
the phantomjs space but the .listen api is missing actually
useful options (incoming request and ability to write to client)
2011-11-15 13:44:47 +01:00
Milian Wolff c3179c3dee move mongoose dir, use same setup like in gif folder 2011-11-15 13:38:01 +01:00
Aditya Ivaturi feed6fdc72 From now on including mongoose directly in the project 2011-11-15 13:38:01 +01:00
Aditya Ivaturi 2e43d7da15 Modified name of the shared lib generated 2011-11-15 13:38:01 +01:00
unknown 2b21135119 Fixed the make command for mingw 2011-11-15 13:38:01 +01:00
Aditya Ivaturi 71ffff002f Adding mongoose code & commented out parts in Makefile to skip the exe generation 2011-11-15 13:38:01 +01:00
Joe Gornick cd9f40b22d Merge branch 'master' of git://github.com/ariya/phantomjs into add-socks5-proxy 2011-11-08 23:23:28 -06:00
Joe Gornick d91c5af9b2 Added ability to specify SOCKS5 proxy type. 2011-11-08 21:58:48 -06:00
Ariya Hidayat d8494a3f37 Merge pull request #170 from Roejames12/bfd54c381716fb841bd59372d52c390678c62b2e
Add bugfix to changelog
2011-11-06 05:40:09 -08:00
IceArmy bfd54c3817 Add a bug fix to the changelog 2011-11-05 21:10:46 -07:00
Ariya Hidayat 04e281e365 Static Linux build script: disable some more configs.
http://code.google.com/p/phantomjs/issues/detail?id=197
2011-11-04 19:54:24 -07:00
Ariya Hidayat ada7611cda Initial version of build script for static Linux.
http://code.google.com/p/phantomjs/issues/detail?id=197
2011-11-04 08:39:01 -07:00