Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

curl_unescape(3) [debian man page]

curl_unescape(3)						  libcurl Manual						  curl_unescape(3)

NAME
curl_unescape - URL decodes the given string SYNOPSIS
#include <curl/curl.h> char *curl_unescape( char *url, int length ); DESCRIPTION
Obsolete function. Use curl_easy_unescape(3) instead! This function will convert the given URL encoded input string to a "plain string" and return that as a new allocated string. All input characters that are URL encoded (%XX where XX is a two-digit hexadecimal number) will be converted to their plain text versions. If the 'length' argument is set to 0, curl_unescape() will use strlen() on the input 'url' string to find out the size. You must curl_free() the returned string when you're done with it. AVAILABILITY
Since 7.15.4, curl_easy_unescape(3) should be used. This function will be removed in a future release. RETURN VALUE
A pointer to a zero terminated string or NULL if it failed. SEE ALSO
curl_easy_escape(3), curl_easy_unescape(3), curl_free(3), RFC 2396 libcurl 7.7 22 March 2001 curl_unescape(3)

Check Out this Related Man Page

curl_easy_unescape(3)						  libcurl Manual					     curl_easy_unescape(3)

NAME
curl_easy_unescape - URL decodes the given string SYNOPSIS
#include <curl/curl.h> char *curl_easy_unescape( CURL *curl, char *url, int inlength , int *outlength ); DESCRIPTION
This function converts the given URL encoded input string to a "plain string" and returns that in an allocated memory area. All input char- acters that are URL encoded (%XX where XX is a two-digit hexadecimal number) are converted to their binary versions. If the length argument is set to 0 (zero), curl_easy_unescape(3) will use strlen() on the input url string to find out the size. If outlength is non-NULL, the function will write the length of the returned string in the integer it points to. This allows an escaped string containing %00 to still get used properly after unescaping. You must curl_free(3) the returned string when you're done with it. AVAILABILITY
Added in 7.15.4 and replaces the old curl_unescape(3) function. RETURN VALUE
A pointer to a zero terminated string or NULL if it failed. SEE ALSO
curl_easy_escape(3), curl_free(3), RFC 2396 libcurl 7.15.4 7 April 2006 curl_easy_unescape(3)
Man Page

4 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Replacing one Char in a string of variable length

Hi all, I am trying to find the best way of making a change to 1 char in a string, the string can be between 1 and 14 characters. I am reading a line in from a file which contains 012341231231:2:102939283:NNN: Require :NBN: 012838238232:3:372932:NNN: Require :NNB: I need to change 1 N or a... (8 Replies)
Discussion started by: nkwilliams
8 Replies

2. Programming

How to find length of string and pass into char array in C?

Hi All I want to take a Hexadecimal number as input and i want to find lenth of the input and pass it to char s ( char s ). I have a program to convert hexadecial to binary but it is taking limited input but i want to return binary number based on input. How? (1 Reply)
Discussion started by: atharalikhan
1 Replies

3. Programming

Fastest way to find the length of string in c

Hi all, We use strlen() fun provided by library to find the length of a string. Looking inside of it, it has some different mechanism to find the length of string. Normally, we scan the string byte by byte until the '\0' character. It takes a logn time to count length. The Library strlen()... (2 Replies)
Discussion started by: yogeshrl9072
2 Replies

4. Shell Programming and Scripting

curl misbehaving

Hi friends, I have a text file of the following kind input.txt -o abc.pdf "pdfmyurl.com?url=http://www.abc.com" I am using this command for i in `cat input.txt`; do curl $i; done It is giving the error try 'curl --help' or 'curl --manual' for more information Any... (5 Replies)
Discussion started by: jacobs.smith
5 Replies