Google URL Shortener: Introduction
Google has a URL shortener service called goo.gl. With URL shortening service, you can shorten a very long URL and share it to a microblogging site like Twitter. The advantage of the URL shorteners is that it saves space. Typical microblogging sites have limited character count for an Update and a long URL can consume [...]
How to get HTTP headers from CURL response?
You can write a simple PHP curl program to download a page. Every HTTP response contains a Header and the contents. In most cases, you will be concerned more about the contents. By default, curl response will give you the contents. But you can also specify that you need the header using the option CURLOPT_HEADER [...]
How to remove HTTP headers from CURL response?
You can write a simple PHP curl program to download a page. Every HTTP response contains a Header and the contents. In most cases, you will be concerned more about the contents. By default, curl response will give you the contents. But you can also specify that you need only the contents and not the [...]
Curl: Copying the Webpage contents to Memory buffer
The webpage contents can be copied to a file or standard output using curl. But in most of the cases, you will need to process the data after downloading the web contents. This can also be done using curl. The CURLOPT_WRITEDATA option must be pointed to the pointer where you want to copy the data. [...]
URL Decoding in C/C++: curl_easy_unescape
URL encoding also called as Percent encoding is useful when certain applications or services expect the data to be of the format “application/x-www-form-urlencoded”. URL Decoding is the opposite process. It converts the encoded URL back to its original form. Justlike urlencode, PHP has function urldecode to perform the decoding done by the percent encoding. But [...]
URL Encoding in C/C++: curl_easy_escape
URL encoding also called as Percent encoding is useful when certain applications or services expect the data to be of the format “application/x-www-form-urlencoded”. Take for example bit.ly, the URL shortening service expects the URL to be shortened in URL encoded (Percent Encoded). PHP has functions like urlencode to perform percent encoding. But C/C++ has no [...]