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

RE: posting to URL from RPG



If the response is truly not desired, can /dev/null be used for the result file?

Also, given the parameters in the URL, are you sure you're supposed to POST and not GET?  Do you actually have data to send to the server?
--
Sean Porterfield

-----Original Message-----
From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx [mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Scott Klement
Sent: Thursday, February 17, 2011 16:09
To: HTTPAPI and FTPAPI Projects
Subject: Re: posting to URL from RPG

Hi Tripp,

Are you sure you want to POST to a form?  I ask that because you're not using the POST data at all.  What's the point of doing a POST if you're not going to use POST data?

Why not do a GET like a browser does?

the weird thing is... you are sending your response file to the web server.  WTF?!  So whatever you downloaded last time, you want to upload it the subsequent time?


On 2/17/2011 2:22 PM, THarrell@xxxxxxxxxxxx wrote:
>
>     Scott. I have been looking at your HTTP code examples to post to a URL
>     and had a quetion or two... I see a few methods that sound like they'd
>     work, but appear to do more than I need.
>     All I need to do is post to a URL and don't really care about a
>     response or building a SOAP string as in http_url_post_xml.
>     I've gotten this to work:
>     tempfile = '/tmp/http_result.txt';
>     rc = http_url_post_stmf(  httpString
>                             : tempfile
>                             : '/tmp/http_result.txt'
>                             : TIMEOUT
>                             : usr_agent    );
>
>     where httpstring =
>     [1]http://1.1.1.1/xxxx/processController/ProcessControllerServlet?proc
>     Id=importBatchXML&importAreaId=ftpTest&xmlFilePath=xmlFile.xml&puid=im
>     portScan&utid=process&authid=1234567890123456789123456789
>     The java resource gave me the exact URL to use, only the varaibles
>     will change. Is there a proc I could use that would simply post and
>     also also allow the usr_agent parm.

This email is confidential, intended only for the named recipient(s) above and may contain information that is privileged.  If you have received this message in error or are not the named recipient(s), please notify the sender immediately and delete this email message from your computer as any and all unauthorized distribution or use of this message is strictly prohibited.  Thank you.
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------