03.02.2014 Views

php|architect's Guide to Web Scraping with PHP - Wind Business ...

php|architect's Guide to Web Scraping with PHP - Wind Business ...

php|architect's Guide to Web Scraping with PHP - Wind Business ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

cURL Extension ” 39<br />

<br />

CURLOPT_HTTPHEADER holds an enumerated array of cus<strong>to</strong>m request header namevalue<br />

pairs formatted like so .<br />

<br />

Debugging<br />

Previously mentioned in the last section on handling headers, the curl_getinfo function<br />

also enables you <strong>to</strong> view requests being sent by cURL. This can be quite useful<br />

when debugging. Belo w is an example of this feature in action.<br />

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!