1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Anyone help me with CURL login BTCE

Discussion in 'PHP & Perl' started by cpainvest, Mar 1, 2015.

  1. cpainvest

    cpainvest Registered Member

    Joined:
    Feb 2, 2011
    Messages:
    91
    Likes Received:
    8
    Occupation:
    Google Dev
    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
     
  2. opoweroil

    opoweroil Registered Member

    Joined:
    Jun 6, 2014
    Messages:
    63
    Likes Received:
    9
    use python with selenium if theres ajax
     
    • Thanks Thanks x 1
  3. cpainvest

    cpainvest Registered Member

    Joined:
    Feb 2, 2011
    Messages:
    91
    Likes Received:
    8
    Occupation:
    Google Dev
    Do you have a demo ?
     
  4. cpainvest

    cpainvest Registered Member

    Joined:
    Feb 2, 2011
    Messages:
    91
    Likes Received:
    8
    Occupation:
    Google Dev
    anyone help me, please
     
  5. losdivinos

    losdivinos Jr. VIP Jr. VIP

    Joined:
    Mar 6, 2012
    Messages:
    213
    Likes Received:
    59
    Occupation:
    Self Employed
    Location:
    Denmark
    Check this video out. This is what I use.
     
    • Thanks Thanks x 1
    Last edited by a moderator: May 18, 2016
  6. cpainvest

    cpainvest Registered Member

    Joined:
    Feb 2, 2011
    Messages:
    91
    Likes Received:
    8
    Occupation:
    Google Dev
    btc-e.com site login is not same other sites so i cant do that
     
  7. MrBlue

    MrBlue Senior Member

    Joined:
    Dec 18, 2009
    Messages:
    974
    Likes Received:
    680
    Occupation:
    Web/Bot Developer
    BTC-E has an API.
    Code:
    https://btc-e.com/api/documentation
     
    • Thanks Thanks x 1
  8. cpainvest

    cpainvest Registered Member

    Joined:
    Feb 2, 2011
    Messages:
    91
    Likes Received:
    8
    Occupation:
    Google Dev
    Yes but i need to use CURL PHP to redeem BTC-E Code
     
  9. ralphnsk

    ralphnsk Newbie

    Joined:
    Nov 2, 2009
    Messages:
    43
    Likes Received:
    13
    Gender:
    Male
    Location:
    /dev/random
    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'
     
    • Thanks Thanks x 1
  10. ralphnsk

    ralphnsk Newbie

    Joined:
    Nov 2, 2009
    Messages:
    43
    Likes Received:
    13
    Gender:
    Male
    Location:
    /dev/random
    I've PMed you the code from my working parser, it uses json requests to obtain a phone number for individual ads.
     
    • Thanks Thanks x 1
  11. onlyshop

    onlyshop Newbie

    Joined:
    May 30, 2011
    Messages:
    35
    Likes Received:
    6
    Hey ralphnsk can u help me with btc-e login curl? thanks
     
  12. ralphnsk

    ralphnsk Newbie

    Joined:
    Nov 2, 2009
    Messages:
    43
    Likes Received:
    13
    Gender:
    Male
    Location:
    /dev/random
    Your script is finished ;) Thanks for your business.
     
  13. onlyshop

    onlyshop Newbie

    Joined:
    May 30, 2011
    Messages:
    35
    Likes Received:
    6
    thanks bro, good job
     
  14. redrolives

    redrolives Newbie

    Joined:
    May 26, 2015
    Messages:
    35
    Likes Received:
    2
    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