Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 1 of 1
  1. #1
    Senior Member Zboost's Avatar
    Join Date
    Apr 2011
    Location
    Houston
    Posts
    246
    Member #
    27459
    Liked
    20 times
    Whats up guy! I got a little issue I'm running into. For fun I'm try to pull call of duty elite stat information but requires me to login. So I've tried cURL functions all ways possible but I can't get it to work. Anyone want to help me out, I'd sure appreciate it.

    Edit: Little script to connect to them for whatever reason anyone ever needs to. I just want it for fun lol.

    PHP Code:
    $post 'j_username=YOURELITELOGINNAME&j_password=YOURELITEPASSWORD';

    $curl_connection =  curl_init();

    curl_setopt($curl_connectionCURLOPT_URL"https://profile.callofduty.com/elite/do_login");
    curl_setopt($curl_connectionCURLOPT_CONNECTTIMEOUT30);
    curl_setopt($curl_connectionCURLOPT_USERAGENT,
    "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)");

    curl_setopt($curl_connectionCURLOPT_RETURNTRANSFERtrue);
    curl_setopt($curl_connectionCURLOPT_SSL_VERIFYPEERfalse);
    curl_setopt($curl_connectionCURLOPT_FOLLOWLOCATION1);
    curl_setopt($curl_connectionCURLOPT_COOKIEJAR'cookie.txt');
    curl_setopt($curl_connectionCURLOPT_COOKIEFILE'cookie.txt');
    curl_setopt($curl_connectionCURLOPT_POSTFIELDS$post);

    $result curl_exec($curl_connection); 

  2.  


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 10:22 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com