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

HttpApi Question



All -

I have taken over a project to convert a process from VB6 to the Iseries.
I downloaded the HTTPAPI source and examples.

This is the process:
   Send a log-on message
   Send multiple data messages

This is a snippet of source from the VB 6 applications that I am attempting
to convert.

xmlHTTP.Open "POST", strServer, False, strUser, strPassword
xmlHTTP.Send (xmlData)


I have been following the recent email regarding sending the authentication
prior to each "POST". So my RPGLE source looks like the following.

callp http_setAuth( HTTP_AUTH_BASIC:
                    'xxxxxx':
                    'xxxxxx' );

 eval rc=http_url_post( %Trimr(server) :
                        %addr(data):
                        %len(%trimr(data)):
                        '/tmp/response.xml');

The service that I am sending these messages to does load balancing.  Some
of the transactions are successful and some I am receiving the response "1
Invalid authorization token".  The support for the site tells me that I am
dropping the connection and that is why I am receiving these messages.

At this point I am not certain how to proceed and was looking for
suggestions from the group.

Thank you in advance,

Nancy Schueller
563-584-0404 x123


This message and any attachments are for the sole use of the intended recipient(s) and may contain confidential and/or privileged information. Any unauthorized review, use, disclosure or distribution is strictly prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message and any attachments. Thank you.

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