[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: http_url_post Performance
Hi Scott,
Thanks for you response,
I do not know why it is slow. I thought you could shed some light on
why it could be.. I am doing something wrong or is it that the target
server (Sabrix) response is taking that long.
Is it because the request message size of 353 kilobytes.
Thanks
Raj
_________________________________________________________________
From: natarajanpalani@xxxxxxx
To: ftpapi@xxxxxxxxxxxxxxxxxxxxxx
Subject: http_url_post Performance
Date: Thu, 11 Nov 2010 08:49:58 -0500
Hi Scott,
I am using http_url_post API and getting the XML response back. Since
the response XML size may exceed Maximum allowed in RPGLE, I am
getting the XML response back through temporary IFS file.
Question:
I am experiencing a performance problem. It taking around 30 seconds
to get a response back for a request message size of 353 kilobytes. I
do not know if the performance issue is on the server side or is its
http_url_post API. Can you please let me know if I can do something
better to increase the performance.
Below is the code for your reference:
//Create a Temporary IFS File to get the XML response from
SABRIX
@IFSTempfile = http_tempfile() + '.xml';
//Process to Convert the postdata/Inputdata to URL encoded
data.
form = WEBFORM_open();
WEBFORM_setPtr(form: 'instring': pWk_XML_Input :
p_Offset );
WEBFORM_postData(form: postData: postDataSize );
// Post data and get document
rc = http_url_post(%trim(@ServerName)
: postData
: postDataSize
: @IFSTempfile
: @HTTPPostTimeout
: *OMIT
: %trim(@URLEncodApp) );
WEBFORM_close(form);
if rc <> 1;
unlink(@IFSTempfile);
DS_HTTP_StatusData.HTTPErrDesc = 'HTTP Post Failed. ' +
http_error();
DS_HTTP_StatusData.ReturnCd = HTTPPostFailed;
Endif;
Thanks for all your help.
Raj
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------