Commit be94596d be94596d54aba032da3a1e3d880d3f3a91c7255d by Nicolas Perriault

updated doclink

1 parent 26f51db8
......@@ -44,6 +44,23 @@ $ casperjs dump-headers.js
}
```
To fetch a particular header by its name:
```javascript
require('casper').create().start('http://www.google.fr/', function(response) {
this.echo(response.headers.get('Date'));
}).run();
```
That gives:
```javascript
$ casperjs dump-single-header.js
Thu, 18 Oct 2012 08:26:34 GMT
```
The documentation has been [updated accordingly](http://casperjs.org/api.html#casper.then.callbacks).
### Bugfixes & enhancements
- [Casper.resourceExists()](http://casperjs.org/api.html#casper.resourceExists) and related functions now checks for non HTTP-404 received responses.
......
Subproject commit 722549a0a483f19fc768d304d98050389d0c038a
Subproject commit 0c56749087967d128f206d3b67f274fb75000676
......