Merge pull request #12586 from denali443/patch-1

Update 2000-01-04-network-monitoring.md
gh-pages
Ariya Hidayat 2014-09-21 23:29:41 -07:00
commit f7f5a26800
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ permalink: network-monitoring.html
Because PhantomJS permits the inspection of network traffic, it is suitable to build various analysis on the network behavior and performance.
All the resource requests and responses can be sniffed using `onResourceRequested` and `onResourceReceived`. A very simple to log every request and response is illustrated in the example script [netlog.js](https://github.com/ariya/phantomjs/blob/master/examples/netlog.js):
All the resource requests and responses can be sniffed using `onResourceRequested` and `onResourceReceived`. A very simple example to log every request and response is illustrated in the script [netlog.js](https://github.com/ariya/phantomjs/blob/master/examples/netlog.js):
```javascript
var page = require('webpage').create();