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

Re: Post to aspx (This time w files attached)



Hi Julie,

Sorry, that should've been http_url_post  (without the "_stmf" at the 
end.)  I copy/pasted your code and changed it, and I forgot to change 
the procedure name.

Please try it without the "_stmf" -- that's what's causing the 
'parameter does not match the prototype' error that the RPG compiler is 
giving you -- you're calling the wrong prototype.  My fault!  Sorry 
about that.

With regards to the debug file you sent... the data you're sending looks 
like pure garbage.  I'm guessing that whatever your CL program is doing 
to convert it from a PF to a STMF is failing to do ASCII/EBCDIC conversion.

-SK


On 5/3/2012 9:56 AM, Nichols, Julie wrote:
>
> Thanks for your thorough response.  You hit all the nails on the
> head:  I am building a pipe-delimited file, writing to a physical
> file, converting with a CPYTOSTMF operation, and calling
> http_url_post to send it.  You are also correct about the incorrect
> use of (x'0a') - I have changed it to x'25'.  I tried your
> http-url-post-stmf example but kept getting 'The type of the
> parameter specified for the call does not match the prototype', so I
> backed off that change for now.   (But I will definitely try sending
> without creating a file next time - that is obviously more
> efficient.) In answer to your point #3:  I am getting a zero-length
> file but as another of your mailing list subscribers pointed out,
> that empty file may be getting created on my side in anticipation of
> the returned data.  I thought I was expecting text data in return but
> I need to verify with the author of the aspx program.  Back to my
> side, after the post rc is equal to '1'. I am attaching the
> streamfile I create for the post along with a print of the
> httpapi_debug listing.  At this point in my http education I am not
> understanding what I am seeing on the debug listing.
>
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------