Anyone help me with CURL login BTCE

cpainvest

Junior Member
Joined
Feb 2, 2011
Messages
120
Reaction score
14
Hi everyone,
I want to use CURL PHP to redeem BTC-E Code but I cant login BTCE.Com with CURL.
They use ajax to login. So anyone can help me solve it ?
Thank you so much
 
anyone help me, please
 
Check this video out. This is what I use.
 
Last edited by a moderator:
btc-e.com site login is not same other sites so i cant do that
 
I did something like that for a couple another sites, and you definitely can send ajax requests with curl. What I suggest first is logging in with your browser as normally, and then analyzing the HTTP requests and headers that were sent to the site (in firefox I use live HTTP headers plugin).

Then you can reconstruct the request in CURL. What you will probably need to do is to set a header that is specific to ajax requests:
'Accept: application/json, text/javascript, */*; q=0.01'
 
I've PMed you the code from my working parser, it uses json requests to obtain a phone number for individual ads.
 
seleium is slow if you will use python use urllib or requests/mechanize. if you want to stay logged in you need to keep your cookies
 
Back
Top