Update casper.rst

Trying to fix the example code for changing the user-agent. 
Current example doesn't work.
Merge pull request #572 from shekyan/patch-1

Update casper.rst