Curl
Martech Zone articles tagged curl:
-
Email Marketing & Automation
Mailchimp: Streamlining Customer Communication with Transactional Emails (Formerly Mandrill)
Transactional emails are automated, one-to-one messages triggered by user actions or behaviors. Examples include welcome emails, password reset requests, order confirmations, order status updates, and shipping notifications. These emails are essential for maintaining customer communication and providing timely updates related to their interactions with a service or product. To comply with CAN-SPAM laws and best practices, transactional emails must: Not…
-
Martech Zone Apps
App: Post and Retrieve HTTP Header Information
HTTP headers play a crucial role as the gatekeepers of valuable information exchanged between web browsers, servers, and APIs. These headers, part of the HTTP request and response messages, convey essential metadata about the nature of the request or the content being transferred. Understanding and analyzing HTTP headers is key to diagnosing and resolving web-related issues for developers, marketers, and…
-
Content Marketing
PHP: Using Is.gd API to Shorten URL
Just read an article on the benefits and pitfalls of shortening URLs over at SEOmoz. I utilize the Is.gd API to do this: function doCurlRequest($url, $variable, $value) { $api = $url."?".$variable."=".$value; $session = curl_init(); curl_setopt($session, CURLOPT_URL, $api); curl_setopt($session, CURLOPT_RETURNTRANSFER, 1); $data = curl_exec($session); curl_close($session); return $data; } function doShortenURL($longurl) { $url = "http://is.gd/api.php"; $variable = "longurl"; $shorturl = doCurlRequest($url, $variable,…