[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: post stream file url encoded



Take a look at EXAMPLE14 which is included with HTTPAPI.  It 
demonstrates how to use the URL encoder functions.  EXAMPLE14 shows 
several variables being used, but in your case, you'll want to set only 
one variable ("txtxml").

Note that the subprocedures that EXAMPLE14 uses have a limit of 256 
bytes per variable.  If you need a larger amount than that, there's an 
alternate subprocedure (either http_url_encoder_addvar(), or 
WEBFORM_setPtr(), depending on the version of HTTPAPI) that can support 
larger strings.   See HTTPAPI_H for details.


Shahar Mor wrote:
>    i am using httpapi expat and cgidev2 to compose send and parse xml
>    from web services for the last year and it works very well - big thank
>    you for this.
> 
>    today i was asket to call service by using simple post rather then web
>    service (i.e the url contains post with one variable named txtxml. The
>    variable contains the required xml).
> 
>    It appears that this does not work i think it needs to be encoded (for
>    example the space needs to be %20 ?).
> 
>    So i have the stream file generated by cgidev2 it contains
>    txtxml=<some tag>aa is an apple </some tag> what is the way to
>    properly post it to work ?when i send it via post_stmf i get an
>    error from remote application stating the xml  is not valid.
> 
> 
>    Thank for the great solution and community
> 
> 
> 
> ------------------------------------------------------------------------
> 
> -----------------------------------------------------------------------
> This is the FTPAPI mailing list.  To unsubscribe, please go to:
> http://www.scottklement.com/mailman/listinfo/ftpapi
> -----------------------------------------------------------------------

-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------