Commit Graph

1030 Commits (1.4)

Author SHA1 Message Date
Ariya Hidayat 5322ee9681 Make sure POST works.
With Qt 4.8, POST request with an empty content type will make the
content type set to "application/octet-stream". Somehow this breaks
POST.

The fix is to set the content type to "application/x-www-form-urlencoded",
like the case with Qt 4.7.

Based on the suggestion by Leo Franchi.

http://code.google.com/p/phantomjs/issues/detail?id=337
2012-01-10 08:28:20 -08:00
Alessandro Portale b31a43559f Fix linking on Windows
mongoose needs symbols from Ws2_32.lib

http://code.google.com/p/phantomjs/issues/detail?id=331
2012-01-03 07:42:23 -08:00
Ariya Hidayat 5842899594 Adjust the test for version 1.4.1. 2011-12-31 21:05:10 -08:00
Ariya Hidayat 68ad1c2c6e Changes for 1.4.1. 2011-12-30 08:31:36 -08:00
Jon Leighton ecfcbec668 Add a test for file upload support 2011-12-30 08:24:49 -08:00
Jon Leighton 8521d197a0 Ignore source files in the deploy/ directory 2011-12-30 08:24:45 -08:00
Jon Leighton 8c372d6500 Make linux build script use the Qt 4.8.0 tarball.
Also make it always put the files in deploy/, regardless of where the
script is run from. (So use can run deploy/build-linux.sh from the root
directory.)
2011-12-30 08:24:34 -08:00
Jon Leighton 4e98c09488 Fix file upload on Qt 4.8.
Code was added to WebKit to detect whether the click event on the file
input element is triggered by user action or by a script. If it's by a
script, the event is ignored. This prevented us from simulating a click
on the element.

This fix just patches WebKit to remove the detection.

The relevant WebKit commit is:

  931870c11b

The associated WebKit bug is:

  https://bugs.webkit.org/show_bug.cgi?id=47593

Our bug is:

  http://code.google.com/p/phantomjs/issues/detail?id=307&q=upload

Conflicts:

	deploy/build-mac.sh
2011-12-30 08:24:22 -08:00
Ariya Hidayat ea95d57af2 Workaround to prevent WebCoreMovieObserver confusion.
The solution is for the static build script to disable QuickTime video.
In many cases, video support for a headless engine is not so useful.

http://code.google.com/p/phantomjs/issues/detail?id=321
2011-12-30 07:29:14 -08:00
Ariya Hidayat 9997b8740f Prepara 1.4 branch for 1.4.1 bug fix release. 2011-12-30 07:28:09 -08:00
Will d730b3187b Allow proxy type to be set on the command line.
http://code.google.com/p/phantomjs/issues/detail?id=266
2011-12-26 13:15:41 -08:00
Ariya Hidayat 5564ae06e7 Don't display debugging and warning messages.
http://code.google.com/p/phantomjs/issues/detail?id=323
2011-12-25 03:35:43 -08:00
Ariya Hidayat cbc9be0a7f Don't create window.WebServer.
It was done for WebPage for backward compatibility and it would be
removed in the future, so don't do it for WebServer.

http://code.google.com/p/phantomjs/issues/detail?id=115
2011-12-22 21:34:47 -08:00
Ariya Hidayat 1ee0a4ce44 Mac build script: x86 only for better compatibility.
http://code.google.com/p/phantomjs/issues/detail?id=142
2011-12-22 21:20:52 -08:00
Ariya Hidayat fa4309e381 Mac build script: Make sure it's executable.
http://code.google.com/p/phantomjs/issues/detail?id=142
2011-12-22 17:33:58 -08:00
Ariya Hidayat 724d28863b Static build: Don't merge Mac and Linux script.
Apparently with Qt 4.8, static build on Linux does not work out of the
box so there is no need to merge the static build scripts.

Also, tweak some configure options.

http://code.google.com/p/phantomjs/issues/detail?id=142
http://code.google.com/p/phantomjs/issues/detail?id=197
2011-12-22 17:30:33 -08:00
Ariya Hidayat bfc16995b4 Linux build script: Keep to 4 parallel jobs at most.
http://code.google.com/p/phantomjs/issues/detail?id=197
2011-12-22 17:28:27 -08:00
Ariya Hidayat 3c13b9dca1 Static build script: Fix the build.
MIT SHM is needed on X11.
Local path is better passed directly to configure.

http://code.google.com/p/phantomjs/issues/detail?id=142
http://code.google.com/p/phantomjs/issues/detail?id=197
2011-12-22 09:32:35 -08:00
Ariya Hidayat c32d78747c Static build script: attempt to unify both Mac and Linux version.
http://code.google.com/p/phantomjs/issues/detail?id=142
http://code.google.com/p/phantomjs/issues/detail?id=197
2011-12-22 08:31:03 -08:00
Ariya Hidayat 62811468e4 Merge branch '1.4' of github.com:ariya/phantomjs into 1.4 2011-12-21 08:40:38 -08:00
Ariya Hidayat eb33e89e7a Merge branch 'master' into 1.4 2011-12-21 08:39:22 -08:00
Ariya Hidayat 93dd478370 Merge pull request #185 from Roejames12/master
Last changes
2011-12-21 08:37:14 -08:00
Ariya Hidayat 9ca1a4042c Mac build script: update to get Qt 4.8.0.
http://code.google.com/p/phantomjs/issues/detail?id=142
2011-12-21 07:59:39 -08:00
Ariya Hidayat 1e8b0a7336 WebServer: make sure status code is used for writeHead() function.
http://code.google.com/p/phantomjs/issues/detail?id=115
2011-12-21 07:59:39 -08:00
Ariya Hidayat f4f59b2319 WebServer: make sure status code is used for writeHead() function.
http://code.google.com/p/phantomjs/issues/detail?id=115
2011-12-21 07:56:09 -08:00
Ariya Hidayat 56a5641b0e WebServer: make sure status code is used for writeHead() function. 2011-12-21 07:49:00 -08:00
Ariya Hidayat cd590f2524 Mac build script: update to get Qt 4.8.0.
http://code.google.com/p/phantomjs/issues/detail?id=142
2011-12-20 22:49:34 -08:00
Ariya Hidayat 2e2fef788d Refer to 1.4 in the README. 2011-12-20 08:35:21 -08:00
Ariya Hidayat dea72dcbd3 Remove the complex example for WebServer module.
The simpleserver should be a better starting point to learn the module.

http://code.google.com/p/phantomjs/issues/detail?id=115
2011-12-20 08:35:20 -08:00
Ariya Hidayat ec57f2e2f1 Hide the experimental remote debugger support. 2011-12-20 08:27:13 -08:00
Ariya Hidayat d6219e16d6 Version is now 1.4.0, not 1.4.0 (development). 2011-12-20 08:26:20 -08:00
Ariya Hidayat f7675b1627 Clean-up of header includes in webserver.cpp. 2011-12-20 08:24:08 -08:00
Ariya Hidayat 7c07bd43d2 Include --proxy-type option in the usage.
http://code.google.com/p/phantomjs/issues/detail?id=266
2011-12-20 08:11:21 -08:00
Ariya Hidayat 24f6325308 Mac OS X: Prevent showing the icon on the dock.
http://code.google.com/p/phantomjs/issues/detail?id=281
2011-12-19 19:01:48 -08:00
Ariya Hidayat 5528c046db Some API changes in the WebServer module.
Trying to match http://nodejs.org/docs/latest/api/http.html.

For the server response:

  * Change writeBody to write
  * Change writeHeaders to writeHead

For the request object, 'headers' is now an object containing all
key-value pairs of the actual HTTP headers.

'queryString' is folded into 'url' key.

Non-standard keys in the request: isSSL, remotePort, remoteIP,
remoteUser, are disabled in the mean-time (will be revisited after 1.4
release).

Implementation-wise, the request object is now a simple key-value pair
using QVariant, as opposed to the heavy QObject instance.

http://code.google.com/p/phantomjs/issues/detail?id=115
2011-12-19 18:38:21 -08:00
Ariya Hidayat f3277bc5e9 Explicitly disable directory listing in the web server.
This is for security, as leaking the directory structure is likely not
the use case of PhantomJS built-in server.

http://code.google.com/p/phantomjs/issues/detail?id=115
2011-12-19 18:01:19 -08:00
Ariya Hidayat feafb4f5a3 Add the CoffeeScript version of simpleserver.
This is for the new simpleserver example introduced in commit 9eae7f1.

http://code.google.com/p/phantomjs/issues/detail?id=115
2011-12-19 17:55:27 -08:00
Ariya Hidayat 446abdbd7e Fix wrong exit code (regression).
http://code.google.com/p/phantomjs/issues/detail?id=294
2011-12-19 17:53:39 -08:00
Ariya Hidayat 471e12a375 JSLint fix: Combine all variable declarations. 2011-12-19 17:52:53 -08:00
Ariya Hidayat d5bc2b8192 Update CoffeeScript compiler to version 1.2.
http://code.google.com/p/phantomjs/issues/detail?id=312
2011-12-19 17:51:45 -08:00
Ariya Hidayat 9eae7f101b Add a simpler example for the WebServer module.
This does nothing but to start an HTTP server on the given port.
The request is merely dumped back as the formatted response.

This example is useful for simple troubleshooting.

http://code.google.com/p/phantomjs/issues/detail?id=115
2011-12-19 08:28:06 -08:00
Ariya Hidayat 32203d9a97 Remove tabs in the ChangeLog. 2011-12-19 08:22:06 -08:00
Ariya Hidayat 2823674ec2 Merge branch 'master' of github.com:ariya/phantomjs 2011-12-19 08:15:21 -08:00
Ariya Hidayat 6983f6bdf1 Update Sencha folks. 2011-12-19 01:14:31 -08:00
IceArmy 93c542d5f9 Revert some of commit 8ade9f43 2011-12-15 17:06:56 -08:00
IceArmy 3581fae3c0 Revert most of commit c8f45c2d 2011-12-15 17:04:23 -08:00
IceArmy c8f45c2d15 Replace more unused variables with _ 2011-12-13 13:09:34 -08:00
Ariya Hidayat 6f096e1ed7 Merge pull request #184 from wangyang0123/fix-url-for-onResourceRequested
fixed TypeError when call e.url in page.onResourceRequested handler
2011-12-13 08:49:32 -08:00
Danny Wang 15ac9ab291 fixed TypeError when call e.url in page.onResourceRequested handler
http://code.google.com/p/phantomjs/issues/detail?id=305
2011-12-13 16:39:09 +08:00
IceArmy a300deabe8 Use object identity tests where needed 2011-12-11 22:59:50 -08:00