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

Re: Fw: HTTPAPI ver 1.13.1



Sender: Scott Klement <sk@xxxxxxxxxxxxxxxx>


I have a question:  I installed it fine and am working through the
process.  I am getting a -1 back from the Send() function call in the
CommTCP_BlockWrite procedure.  I can't locate the source for the "Send"
procedure and was trying to find it in order to debug the process.  Is
this an object that is even available for viewing?

send() is part of the operating system (OS/400 or i5/OS).


Instead of telling us that send() is returning -1 (which may not even be an error!) can you please create a debug log and tell us what you find in it? (Or, post the log here?)

To do that, insert the following to your program before it calls HTTPAPI:

http_debug(*ON);



Anything look odd to you below?

Sure, there are a few odd things:


a) You've specified the encoding as "utf-8" but as far as I can tell, it's not. Unless you've modified the way HTTPAPI works, it doesn't convert from EBCDIC to UTF-8, it converts from EBCDIC to ISO-8859-1.

b) Your XML code is missing all of the + (concatenation) characters needed to create an XML document in an EVAL statement. So your code wouldn't even compile.

But none of these would cause a problem with the send() API. Please post the debug log, or at the very least, call the http_error() subprocedure to get an error message. As it stands, I don't have enough information to help you.

-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubsribe from the list send mail
to majordomo@xxxxxxxxxxxxx with the body: unsubscribe ftpapi mymailaddr
-----------------------------------------------------------------------