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

RE: HTTPAPI -Question



Without seeing the code, this might be related to the length of the DATA
parameter.  We have had several program instances where we needed to
increase this parameter to a size greater than the example programs.

Alvin
Alvin Strasburger
Printgear Sportswear
Phone    803-744-2310
Toll Free 800-763-7763
mailto:alvins@xxxxxxxxxxxxx
www.printgear.com


-----Original Message-----
From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
[mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Scott Klement
Sent: Tuesday, May 22, 2012 2:09 PM
To: HTTPAPI and FTPAPI Projects
Subject: Re: HTTPAPI -Question

Hi Andreas,

The error that you cite is not related to the XML Parser.   The error 
means that there was a problem in the HTTP protocol data.  One of the ways
HTTP can send data is called "chunked transfer coding".  When chunked
transfer coding is used, the data that's transferred is sent in chunks, and
each chunk is expressed as: ( chunk size, chunk data, CRLF. ).

HTTPAPI was trying to receive the chunk data, but did not encounter the CRLF
at the end of the chunk, so that consitutes a protocol error, and HTTPAPI
marks it as a failed transfer.

This could be a bug in the HTTP server you're communicating with, or it
could be a bug in HTTPAPI.  In order to know which one is causing the
problem, I'd need to be able to try your program myself against the HTTP
server you're using, so I can trace the internals and see what's happening.

-SK


On 5/22/2012 4:13 AM, andreas.nicoladoni@xxxxxxxxxxxxxxxxxxx wrote:
>     Hallo,
>     on receiving Data from the WebService I got the following ERROR:
>     recvchunk: No CRLF after reading chunkÜ
>     It seems, that the xmlParser didn't find the end of the XML-File which
>     we
>     receive from the WebService.
>     We are on System-i V6R1.
>     Many thanks in advance for any help you can give us.
>     Kind Regards
>     Andreas
>     Mit freundlichen Grüßen
>     ----------------------------------------
>     Andreas Nicoladoni
>
>
>
> ----------------------------------------------------------------------
> - This is the FTPAPI mailing list.  To unsubscribe, please go to:
> http://www.scottklement.com/mailman/listinfo/ftpapi
> ----------------------------------------------------------------------
> -

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




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