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
2011-07-03 22:11:08 +02:00
2012-01-10 08:28:20 -08:00
2011-12-31 21:05:10 -08:00
2011-12-30 08:31:36 -08:00
2010-12-26 19:49:33 -08:00
2011-12-20 08:35:21 -08:00

PhantomJS (www.phantomjs.org) is a headless WebKit with JavaScript API.

It has fast and native support for DOM handling, CSS selector, JSON, Canvas, and SVG.

PhantomJS is cross-platform, it can be compiled for Linux, Windows, FreeBSD, and Mac OS X. Refer to the build instructions for details.

Note: If you are on Mac OS X, read the notice before you start using brew or port to install Qt and/or PhantomJS.

PhantomJS scripts can be written in JavaScript or CoffeeScript.

See also quick start guide and more advanced examples which show various PhantomJS scripts, covering:

  • getting driving direction
  • showing weather forecast conditions
  • finding pizza in New York
  • looking up approximate location based on IP address
  • pulling the list of seasonal food
  • running regression tests from command line
  • producing PDF version of a Wikipedia article
  • rasterizing SVG to image

Do not forget to consult the concise API Reference.

PhantomJS is based on Qt. There are two implementations, using C++ and Python.

The latest stable release is version 1.4 ("Glory of the Snow").

If you want to contribute, please read the Contribution Guide.

S
Description
No description provided
Readme 144 MiB
Languages
C++ 74.8%
C 6.3%
JavaScript 5.5%
Objective-C++ 4.5%
Python 3.2%
Other 5.6%