PHP Classes

File: test_basecamp.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in Bookmark in
  Classes of Md Emran Hasan  >  HTTP client class  >  test_basecamp.php  >  Download  
File: test_basecamp.php
Role: Example script
Content type: text/plain
Description: Test file showing logging into basecamp.
Class: HTTP client class
Access Web resources via HTTP with sockets or Curl
Author: By
Last change:
Date: 7 years ago
Size: 619 bytes


Class file image Download

// Include the Http Class

// Instantiate it
$http = new Http();

// Let's not use cURL

// POST method

// POST parameters
$http->addParam('user_name' , 'yourusername');
$http->addParam('password' , 'yourpassword');

// Referrer

// Get basecamp dashboard (HTTPS)

// Show result page or error if occurred
echo ($http->error) ? $http->error : $http->result;