Skip to content

Drupal call webservices

November 20, 2011

1) Method Post:

$data = array (
‘login_name’ => ‘admin’,
‘login_password’ => ‘123456’,
‘software’ => ‘software_testing’,
‘software_version’ => ‘1.0.0’,

);

$response = drupal_http_request(‘http://xyz_url’, array(‘headers’=>array(‘Content-Type’ => ‘application/x-www-form-urlencoded’),
‘method’=>’POST’, ‘data’ => http_build_query($data, ”, ‘&’)));

if (!isset($response->error)) {
$data = $response->data;
}

Basic Syntax of Regular Expressions

March 9, 2009

First of all, let’s take a look at two special symbols: ‘^’ and ‘$’. What they do is indicate the
start and the end of a string, respectively, like this:
Read more…

25 jQuery Plugins for Navigation

February 21, 2009

http://designm.ag/resources/jquery-navigation-plugins