[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Post vs Post_raw
Sender: "Calabro, Buck" <Buck.Calabro@xxxxxxxxxxxx>
> - we changed the CONFIG_H source
> - called the http_url_post_raw RPG
> program and got the same results -
> DSPLY recvdoc: saveproc:
> Not all data was written! in the joblog.
Right. The error message is because your procedure named 'incoming' didn't return a value equal to the size of the data received from the far end.
> - we then tried to force these HTTP
> property values, via the http_url_post_raw
> parameters:
> C Eval rc = http_url_post_raw(
> C 'HTTP://10.254.20.184/cs/' +
> C 'DataToDw/DataToDwServlet':
> C %addr(data):
> C ! ; %len(%trimr(data)):
> C 1:
> C %pAddr('incoming'):
> C 10:
> C 'Mozilla/4.0':
> C &n! bsp; 'application/x-www-form-url! enco' +< BR> C >'ded')
>and got the same job log error message.
Yup, and for the same reason. While the stuff you're changing may be wrong (in that the servlet doesn't like it) that's not why you are seeing this error.
>Question:
>What does the 4th parameter in the
> http_url_post_raw (comment says
> "peFD = FD to pass back to peProc") do?
It does whatever you want it to do inside your procedure named 'incoming' Most often, it would be a file handle (descriptor) for 'incoming' to use when writing the incoming data to say, an IFS file or another socket or... whatever you want it to do.
> We used the value "1" since the example did.
That may be OK unless your procedure named 'incoming' expects to use it. Did you change the procedure the way Scott advised? I append his suggestion below:
> P Incoming B
> D Incoming PI 10I 0
> D Descriptor 10I 0
> D Data 8192 Options(*VarSize)
> D DataLen 10I 0 Value
> c return datalen
> P Incoming E
>
> This basically just discards any data
> that HTTPAPI sends it. (Obviously,
> you'll want to remove the code that
> translates the result to EBCDIC, since
> you no longer have anything to translate.)
--buck
The information contained in this electronic mail transmission is intended by Communications Software Consultants, Inc. for the use of the named individual or entity to which it is directed
and may contain information that is privileged or otherwise confidential. If you have received this electronic mail transmission in error, please notify the sender immediately and delete this
message from your system without copying or forwarding it.
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubsribe from the list send mail
to majordomo@xxxxxxxxxxxxx with the body: unsubscribe ftpapi mymailaddr
-----------------------------------------------------------------------