Betfair login using simple cURL

1.3k Views Asked by At

I need to check certain prices at betfair.com couple times per day. The website scraping serves best for this purpose. The only extra thing I need is to be logged in the website because of no delay. Because I have an account that is no longer used, security is not an issue, it just has to work. I use the following options for the cURL requests, but it doesn't work.

CURLOPT_URL=>'http://www.betfair.com/en/',
CURLOPT_COOKIEJAR=>'cookie.txt',
CURLOPT_COOKIEFILE=>'cookie.txt',
CURLOPT_POST=>1,
CURLOPT_RETURNTRANSFER=>1,
CURLOPT_SSL_VERIFYPEER=>0,
CURLOPT_SSL_VERIFYHOST=>0,
CURLOPT_FOLLOWLOCATION=>1,
CURLOPT_POSTFIELDS=>'username=user&password=pass
0

There are 0 best solutions below