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

RE:



Sender: "Bartell, Aaron L. (TC)" <ALBartell@xxxxxxxxxxxxxx>

Ian,

>IFS was not involved anywhere.
How can this be being that is how http_url_post stores the results?

Aaron Bartell

-----Original Message-----
From: Ian Patterson [mailto:ian@xxxxxxxxxxxxxxxxxxxx]
Sent: Wednesday, August 27, 2003 1:41 PM
To: ftpapi@xxxxxxxxxxxxx
Subject: RE: 


Sender: "Ian Patterson" <ian@xxxxxxxxxxxxxxxxxxxx>

I have been following this thread with interest. We have been testing
transfers of data using url post and url get, both with SSL.
We have found some strange results today, where data from the GET was
trucated (from 4880 bytes down to 4072 bytes). IFS was not involved
anywhere.
Even stranger, we put the same (binary) file on two different servers and
using the same client on my AS/400, the session on one server is always OK,
and the other always truncates. We tried a PC client against both servers &
everything was OK. the downloaded file was a PKZIP file.
Tomorrow we will look closely at the http headers in the exchanges. I
suspect (without any facts) that 'chunking' is a possible area for concern.
It may be that the two servers treat chunking differently. I don't know. If
we find anything positive (or otherwise), will let you know.

Regards

Ian Patterson
Grange Management Consultants
tel 01947 880458
www.grange-systems.co.uk




-----Original Message-----
From: owner-ftpapi@xxxxxxxxxxxxx [mailto:owner-ftpapi@xxxxxxxxxxxxx]On
Behalf Of Bartell, Aaron L. (TC)
Sent: 27 August 2003 16:28
To: 'ftpapi@xxxxxxxxxxxxx'
Subject: RE:


Sender: "Bartell, Aaron L. (TC)" <ALBartell@xxxxxxxxxxxxxx>

Ok, I was able to recreate it.  Now we will have to see if it can be
recreated on another machine.
**Note** Both the requester and the responder can be setup on the same
iSeries.

Here is how the example needs to be setup:

Put http://mowyourlawn.com/temp/BiztalkSnd_Req.xml in the /tmp/ directory of
your IFS.  Go to http://mowyourlawn.com/temp/ to right click and save.

You will need to compile the following two programs on your system. CGIBND
in the H spec is used to bind with QZHBCGI.
http://mowyourlawn.com/temp/BIZTALKREC.RPGLE
http://mowyourlawn.com/temp/BIZTALKSND.RPGLE


BiztalkSnd sends an XML stream to BiztalkRec.  BiztalkRec writes what it
receives to the IFS and returns exactly what was sent to it.  The file that
BiztalkRec creates in the IFS has the entire contents of the request, so
that part works fine.  If I use a Java app that I wrote to send in the
request XML to BiztalkRec I get the entire response back just fine.

The problem lies here - BiztalkSnd Sends 19429 bytes but only gets back 8143
bytes when using http_url_post.  I use
http://javascriptkit.com/script/script2/charcount.shtml to count the
characters.

For anybody testing this, let me know if you get the same results or if I
have forgotten any code that you need to run the tests.

Aaron Bartell


-----Original Message-----
From: Bartell, Aaron L. (TC) [mailto:ALBartell@xxxxxxxxxxxxxx]
Sent: Wednesday, August 27, 2003 8:14 AM
To: 'ftpapi@xxxxxxxxxxxxx'
Subject: RE:


Sender: "Bartell, Aaron L. (TC)" <ALBartell@xxxxxxxxxxxxxx>

Let me do some more specific testing on my end and get back to you.  I think
I remember where the problem was occurring, but I am not completely sure.  I
will develop a couple a simple programs that produce the problem and that
can be easily transferred to your system so you can test the same exact
programs.

Hopefully I will have it done today yet.

Aaron Bartell

-----Original Message-----
From: Scott Klement [mailto:klemscot@xxxxxxxxxxxx]
Sent: Tuesday, August 26, 2003 5:03 PM
To: ftpapi@xxxxxxxxxxxxx
Subject: Re:


Sender: Scott Klement <klemscot@xxxxxxxxxxxx>


I'm not having this problem, but it appears that at least Aaron is having
a similar problem.

So, the real question is, what can I do to solve it?   Can you tell me
a way to reliably reproduce the problem?  Or should I insert some
diagnostics into HTTPAPIR4, send you a copy, and hope that they can be
used to find the bug?

If nothing else, we could add diagnostics to determine where the problem
is happening in the HTTPAPIR4 code, to narrow things down.

What do you think?


On Tue, 26 Aug 2003 e.klaasse@xxxxxxxx wrote:
>
> I use http-url_post  (SSL) for posting a xml-request (stock). The receiver
> sends directly a reply with the current stock of the requested product.
> This xml-file (reply) is written to the IFS.
>
> When the AS/400 is very busy, something strange happens. The XML file on
> the IFS is truncated, so a part of the file is missing. It feels like a
> timeout, but the default of 300 seconds is used and the program ends
within
> 1 minute as if everything is ok. Under normal circumstances the xml-file
> will be received complete.
>
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubsribe from the list send mail
to majordomo@xxxxxxxxxxxxx with the body: unsubscribe ftpapi mymailaddr
-----------------------------------------------------------------------
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubsribe from the list send mail
to majordomo@xxxxxxxxxxxxx with the body: unsubscribe ftpapi mymailaddr
-----------------------------------------------------------------------
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubsribe from the list send mail
to majordomo@xxxxxxxxxxxxx with the body: unsubscribe ftpapi mymailaddr
-----------------------------------------------------------------------


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