29 Commits

Author SHA1 Message Date
IceArmy 698c2619a8 Remove extra spaces in license 2011-09-23 04:40:56 -07:00
IceArmy 58ea69dd7f Simplify process where auth username and password gets set 2011-09-22 04:26:58 -07:00
Ariya Hidayat eb255817c5 Revert support for getting body of requests or responses.
This is causing a serious regression. For details, check out the
following issues:

http://code.google.com/p/phantomjs/issues/detail?id=158
http://code.google.com/p/phantomjs/issues/detail?id=238
2011-09-20 23:05:34 -07:00
IceArmy 2e44f1abd6 Make HTTP authentication as page settings.
http://code.google.com/p/phantomjs/issues/detail?id=45
2011-09-18 04:35:40 -07:00
IceArmy c506f3efe4 Fix bug where resource text didn't actually return the text.
Converted all the .data() back into str()
Made NetworkReplyProxy body() return str()
2011-09-15 17:39:02 -07:00
IceArmy fff0b73234 Alphebetize imports 2011-09-15 17:18:08 -07:00
IceArmy 134eec2fbf Unify the name to 'cookiesFile' everywhere
http://code.google.com/p/phantomjs/issues/detail?id=91
http://code.google.com/p/phantomjs/issues/detail?id=180
2011-09-15 16:48:50 -07:00
IceArmy 3eb16093c0 We shall just pass the args instance, that's cleaner and less messy.
This is a preparation step for
http://code.google.com/p/phantomjs/issues/detail?id=190
2011-09-15 15:18:35 -07:00
IceArmy febf9a14f6 Use super() for all class initializers instead 2011-09-12 22:27:04 -07:00
IceArmy de2dc7b861 Stop unsafe QByteArray conversions using str() 2011-09-07 05:00:26 -07:00
IceArmy 2448157c04 Config to limit the disk cache size 2011-09-06 19:32:10 -07:00
IceArmy a323161a56 Add HTTP Basic authentication support
Digest, and NTLM might also be supported, but is untested
2011-09-04 03:23:58 -07:00
IceArmy cf4b459d01 Fix bug where we'd get strings that were converted incorrectly: "PyQt4.QtCore.QUrl(u'foo')" 2011-08-31 22:38:41 -07:00
IceArmy 5e069ee711 Misc improvements
Changed all if not's/if's for None's to if value is None/if value is not None
Fix bug in fs where split never used os.altsep because if not always evaluated to False since there's almost always something in the list returned
Fix the fixme on fs.isAbsolute where we needed to split the Windows drive letter off
2011-08-24 14:32:29 -07:00
IceArmy 7cbd75a400 Make the parents the first argument (since we will always supply the arg, and also for cleanliness and order) 2011-08-18 14:23:58 -07:00
IceArmy d70ca4bf7c Updated the network access manager to use a proxied reply so the response bodies can be captured. 2011-08-18 14:09:21 -07:00
IceArmy 12d36a195a Don't require \ at the end of multiline imports 2011-08-01 19:13:19 -07:00
IceArmy 4ffd835cb3 Persistent cookie support 2011-07-29 03:55:52 -07:00
IceArmy b7fb218473 Improve plugin system
Thanks to frame hacks, we can get rid of passing/modifying locals()
- Passing bunched locals() is no longer needed on the hook points
- You can access the parent namespace with get() instead
- You can change stuff in the parent namespace with set()
2011-07-04 02:48:10 -07:00
IceArmy 6a8da550cb Better timing for onResourceRequested and onResourceReceived.
We record the time right inside the network access manager. This gives
better accuracy than doing it from JavaScript side, no loss due to the
latency of signal slot connection.
2011-06-09 00:30:55 -07:00
IceArmy 5ca07d99ba Expose more properties for onResourceRequested and onResourceReceived. 2011-06-09 00:30:55 -07:00
IceArmy 91ceec1e9b Add a unique id to associate resource request and receive. 2011-06-08 14:34:30 -07:00
IceArmy 15e596e30c Add hook to handleStarted() 2011-06-08 04:58:20 -07:00
IceArmy d4548b9ad9 Transform all yes,no args into True,False in parseArgs() 2011-06-08 03:14:13 -07:00
IceArmy 0e3b765cc4 Add 'onResourceReceived' event, fired when resource is being received. 2011-06-08 03:13:18 -07:00