MyWebUniversity.com Home Page
 



OpenSolaris man pages main menu


libcurl Manual                                    curlformget(3)



NAME
     curlformget    -    serialize    a     previously     built
     multipart/formdata HTP POST chain

SYNOPSIS
     #include 

     void curlformget(struct curlhttppost *form,  void  *arg,
     curlformgetcallback append);

DESCRIPTION
     curlformget()  is  used  to   serialize   data   previously
     built/appended  with curlformadd(3). Accepts a void pointer
     as  second  argument   which   will   be   passed   to   the
     curlformgetcallback function.

     typedef  sizet  (*curlformgetcallback)(void  *arg,  const
     char *buf,  sizet len);

     The curlformgetcallback will be executed for each part of the HTP POST
     chain. The void *arg pointer will be the one passed as second argument to
     curlformget(). The character buffer passed to it must not be freed. The
     callback should return the buffer length passed to it on success.

RETURN VALUE
     0 means everything was ok, non-zero means an error occurred

EXAMPLE
      sizet printhttppostcallback(void *arg, const char *buf, sizet len)
      {
        fwrite(buf, len, 1, stdout);
        (*(sizet *) arg) ]= len;
        return len;
      }
      sizet printhttppost(struct curlhttppost *post)
      {
        sizet totalsize = 0;
        if(curlformget(post, &totalsize, printhttppostcallback)) {
          return (sizet) -1;
        }
        return totalsize;
      }

AVAILABILITY
     This function was added in libcurl 7.15.5

SEE ALSO
     curlformadd(3)

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



libcurl 7.15.5      Last change: 20 June 2006                   1






libcurl Manual                                    curlformget(3)



     
       ATRIBUTE TYPE     ATRIBUTE VALUE
    
     Availability         SUNWcurl       
    
     Interface Stability  Uncommitted    
    

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













































libcurl 7.15.5      Last change: 20 June 2006                   2



OpenSolaris man pages main menu

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