#!/usr/bin/env php . */ define('INSTALLDIR', realpath(dirname(__FILE__) . '/../..')); require_once INSTALLDIR . '/extlib/OAuth.php'; $shortoptions = 'o:s:'; $longoptions = array('oauth_token=', 'token_secret='); $helptext = <<sign_request($hmac_method, $test_consumer, $at); $r = httpRequest($req_req->to_url()); $body = $r->getBody(); print "$body\n"; //print $req_req->to_url() . "\n\n"; function httpRequest($url) { $request = HTTPClient::start(); $request->setConfig(array( 'follow_redirects' => true, 'connect_timeout' => 120, 'timeout' => 120, 'ssl_verify_peer' => false, 'ssl_verify_host' => false )); return $request->get($url); }