#7 Usage of HTTPPOSTDATA function.

open
nobody
None
5
2005-11-08
2005-11-08
Brew
No

Hello:

I'm trying to post a data stream that contains an XML
file.

The syntax I'm using with Rexx/CURL:

call curlsetopt(curl, 'HTTPPOSTDATA', 'data.')
if curlerror.intcode \= 0 then
call AbortCurl('Error 001 setting curl options')

the "data." stem variable contains all the records
being sent.

I receive the following error (cURL error: 5 - INCOMPLETE).

Questions:
1. I've gotten this to work through HTTPPUT and INFILE,
by writing the stem variable out to a file first. Is
this the appropriate method?
2. Are there any examples of how to use HTTPPOSTDATA? I
think that my problems is in the data contained in the
stem variable, but I'm not sure what it should be.

Thank You.

Brew
bharms1@mts.net

Discussion