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

Re: [Ftpapi] Antwort: Re: HTTP/1.1 411 Length Required with httpapi v 1.32



Hello,

This is a bug in HTTPAPI that was introduced when version 1.24 was released. You said that you are running 1.24beta11, which is a beta version that was not the final release of 1.24. This bug was created after that beta version.

There isn't anything you can change in your call that will fix it. It must be fixed inside HTTPAPI.

I will try to find time to fix it as soon as possible.

-SK


On 2/3/2017 4:17 AM, Karl-Friedrich Goergen wrote:
Hello Scott,

this is the call of http_url_post


  ReturnCode = http_url_post(%trim(xml_URL)         :
                 %addr(P_PostData) + 2  :
                 %len(P_PostData)       :
                 ResFile              :
                 cTimeOut               :
                 HTTP_USERAGENT         :
                 cCharset               :
                 SOAP_Action            );


Should we adjust this for Ver 1.32 ?

Thank you for your support.

Regards
Karl Friedrich



------------------------------------------------------------------------
*Karl-Friedrich Goergen
*Leiter System i Buchung und BO

L'TUR  Tourismus AG
------------------------------------------------------------------------
Augustaplatz 8
76530 Baden-Baden
Tel. +49 7221 366 116
Fax  +49 7221 366 88 116
www.ltur.com <http://www.ltur.com/de/> <http://www.ltur.com/de/last-minute/urlaub/mandelbluete?omnin=DE-HP-FLUID-MB>
------------------------------------------------------------------------

*L'TUR Tourismus AG*- Europe's No. 1 for Last-Minute-Travel with 150 shops in six European countries L'TUR Tourismus AG, Augustaplatz 8, 76530 Baden-Baden, Vorsitzender des Aufsichtsrats: Sebastian Ebel
Vorstand: Marek Andryszak (Vorsitzender des Vorstandes), Benjamin Jacobi
Registergericht: Amtsgericht Mannheim HRB 201600


Von: Scott Klement <sk@xxxxxxxxxxxxxxxx>
An: FTPAPI/HTTPAPI mailing list <ftpapi@xxxxxxxxxxxxxxxxxxxxxx>
Datum: 02.02.2017 23:22
Betreff: Re: [Ftpapi] HTTP/1.1 411 Length Required with httpapi v 1.32
Gesendet von: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
------------------------------------------------------------------------



Hello Karl-Friedrich,

Can you please tell me which parameters to http_url_post()?

Thank you!



On 1/31/2017 5:38 AM, Karl-Friedrich Goergen wrote:
> Hi,
>
> when using HTTPAPI Ver 1.32 we receive error SetError() #13: HTTP/1.1
> 411 Length Required.
> With HTTPAPI Ver 1.24beta11 this error doesn't occur.
>
> In the debug log there ist a difference :
>
> HTTPAPI Ver 1.24beta11 released 2010-09-09
> OS/400 Ver V7R1M0
>
> New iconv() objects set, PostRem=819. PostLoc=0. ProtRem=819. ProtLoc=0
> http_url_post(): entered
> http_persist_open(): entered
> http_long_ParseURL(): entered
> DNS resolver retrans: 2
> DNS resolver retry  : 2
> DNS resolver options: x'00000136'
> .......
> http_persist_post(): entered
> http_long_ParseURL(): entered
> do_oper(POST): entered
> ......
> User-Agent: http-api/1.24
> Content-Type: application/x-www-form-urlencoded
> SOAPAction: getPrices
> Content-Length: 0 / <========= missing in v1.32/
>
> HTTPAPI Ver 1.32 released 2016-02-10
> NTLM Ver 1.4.0 released 2014-12-22
> OS/400 Ver V7R1M0
>
> New iconv() objects set, PostRem=819. PostLoc=0. ProtRem=819. ProtLoc=0
> http_url_post(): entered
> http_persist_open(): entered
> http_long_ParseURL(): entered
> DNS resolver retrans: 2
> DNS resolver retry  : 2
> DNS resolver options: x'00000136'
> ......
> Nagle's algorithm (TCP_NODELAY) disabled.
> http_persist_post(): entered
> http_persist_req(POST) entered.
> http_long_ParseURL(): entered
> http_long_ParseURL(): entered
> do_oper(POST): entered
> There are 0 cookies in the cache
> .........
> User-Agent: http-api/1.32
> SOAPAction: getPrices
>
> To avoid the 411 error the client should send Content-Length 0
>
> How can we achieve this with version 1.32 ?
>
> Thanks in advance
> Karl Friedrich Goergen
>
> ------------------------------------------------------------------------
> *Karl-Friedrich Goergen
> *Leiter System i Buchung und BO
>
> L'TUR  Tourismus AG
> ------------------------------------------------------------------------
> Augustaplatz 8
> 76530 Baden-Baden
> Tel. +49 7221 366 116
> Fax  +49 7221 366 88 116
> www.ltur.com<http://www.ltur.com/de/>
> <http://www.ltur.com/de/last-minute/urlaub/mandelbluete?omnin=DE-HP-FLUID-MB>
>
> ------------------------------------------------------------------------
>
> *L'TUR  Tourismus AG*- Europe's No. 1 for Last-Minute-Travel with 150
> shops in six European countries
> L'TUR  Tourismus AG, Augustaplatz 8, 76530 Baden-Baden, Vorsitzender
> des Aufsichtsrats: Sebastian Ebel
> Vorstand: Marek Andryszak (Vorsitzender des Vorstandes), Benjamin Jacobi
> Registergericht: Amtsgericht Mannheim HRB 201600
>
>
>
>
>
> _______________________________________________
> Ftpapi mailing list
> Ftpapi@xxxxxxxxxxxxxxxxxxxxxx
> http://scottklement.com/mailman/listinfo/ftpapi

_______________________________________________
Ftpapi mailing list
Ftpapi@xxxxxxxxxxxxxxxxxxxxxx
http://scottklement.com/mailman/listinfo/ftpapi




_______________________________________________
Ftpapi mailing list
Ftpapi@xxxxxxxxxxxxxxxxxxxxxx
http://scottklement.com/mailman/listinfo/ftpapi

_______________________________________________
Ftpapi mailing list
Ftpapi@xxxxxxxxxxxxxxxxxxxxxx
http://scottklement.com/mailman/listinfo/ftpapi