MyWebUniversity.com Home Page
 



OpenSolaris man pages main menu


libcurl Manual                              curleasyunescape(3)



NAME
     curleasyunescape - URL decodes the given string

SYNOPSIS
     #include 

     char  *curleasyunescape(  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 characters that are URL encoded  (%X  where
     X is a two-digit hexadecimal number) are converted to their
     binary versions.

     If   the   length   argument   is   set   to    0    (zero),
     curleasyunescape(3)  will  use  strlen()  on the input url
     string to find out the size.

     If outlength is non-NUL, 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 curlfree(3) the returned string when  you're  done
     with it.

AVAILABILITY
     Added in 7.15.4 and replaces the old curlunescape(3)  func-
     tion.

RETURN VALUE
     A pointer to a zero terminated string or NUL if it failed.

SEE ALSO
     curleasyescape(3), curlfree(3), RFC 2396

ATRIBUTES
     See attributes(5) for descriptions of the  following  attri-
     butes:














libcurl 7.15.4      Last change: 7 April 2006                   1






libcurl Manual                              curleasyunescape(3)



     
       ATRIBUTE TYPE     ATRIBUTE VALUE
    
     Availability         SUNWcurl       
    
     Interface Stability  Uncommitted    
    

NOTES
     Source for C-URL is available on http:/opensolaris.org.













































libcurl 7.15.4      Last change: 7 April 2006                   2



OpenSolaris man pages main menu

Contact us      |       About us      |       Term of use      |       Copyright © 2000-2010 MyWebUniversity.com ™