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

Re: [Ftpapi] Data to post truncated



Hello Scott,
If so, then what could be the reason to see the JSON request partially and get a message with "Could not read document: Unexpected end-of-input in field name" within my debug file with the "http_close(): entered".

I can directly send the file to your email address, in case you need it.

--
Thank you,
Nihat

-----Original Message-----
From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx [mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Scott Klement
Sent: Wednesday, November 15, 2017 12:26 PM
To: FTPAPI/HTTPAPI mailing list <ftpapi@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: [Ftpapi] Data to post truncated

There is nothing in HTTPAPI that limits you to 32766.  I use it with
*much* larger strings than that every day without problems.


On 11/14/17 11:53 AM, Nihat Ezer wrote:
> Greetings,
> Using the HTTPAPI Ver 1.31 by Scott Klement, which works well so far and my debug file with the statement of http_debug(*on: '/tmp/ew0001-debug.txt') currently shows that my data to post has been truncated and its length is 32766 characters, so it seems that i need to increase it but do not know how to do it.
>
> Here is a snippet from my code:
> _____
> dcl-s loUrl       char(128);
> dcl-s rcvDta      varchar(32766);
> dcl-s datatoPost  varchar(32766) ;
>
> loReturnCode = http_url_post_raw(loUrl
>                          : %addr(loDatatoPost)
>                          : %len(%trim(loDatatoPost))
>                          : FD
>                          : %paddr(EWS_httpVeriyiAl
>                          : HTTP_TIMEOUT
>                          : HTTP_USERAGENT
>                          : 'application/json');
>
> ..
> ..
>
> // ASCII to EBCDIC conversion
> http_xlateP(%len(glRcvDta): %addr(glRcvDta) + 2: TO_EBCDIC);
>
> dcl-proc EWS_httpVeriyiAl;
>    dcl-pi  EWS_httpVeriyiAl int(10);
>      peFD    int(10) value;
>      peData  pointer value;
>      peLen   int(10) value;
>    end-pi;
>
>    dcl-s loDta  char(32000) based(peData);
>
>    glRcvDta = glRcvDta +  %subst(loDta: 1: peLen);
>    return peLen;
> end-proc EWS_httpVeriyiAl;
> _____
> --
> Thank you,
> Nihat
>
> [https://www.avivasa.com.tr/i/Assets/images/imza-avivasa.jpg]<https://www.avivasa.com.tr/otomatik-katilim?utm_source=kurumsal-email&utm_campaign=imza-banner>
>
> Bu e-postanin içerdigi bilgiler (ekleri dahil olmak üzere) gizlidir. Onayimiz olmaksizin üçüncü kisilere açiklanamaz. Bu mesajin gönderilmek istendigi kisi degilseniz, lütfen mesaji sisteminizden derhal siliniz. AvivaSA Emeklilik ve Hayat A.S. bu mesajin içerdigi bilgilerin dogrulugu veya eksiksiz oldugu konusunda bir garanti vermemektedir. Bu nedenle bilgilerin ne sekilde olursa olsun içeriginden, iletilmesinden, alinmasindan, saklanmasindan sorumlu degildir. Bu mesajin bilinen virüslere karsi kontrolleri AvivaSA Emeklilik ve Hayat A.S. tarafindan yapilmistir. Ancak internet iletisiminde güvenlik ve hatasiz gönderim garanti edilemeyeceginden, mesajin yerine ulasmamasi, geç ulasmasi, içeriginin bozulmasi ya da mesajin virüs tasimasi gibi problemler olusabilir. AvivaSA Emeklilik ve Hayat A.S. bu tip sorunlardan sorumlu tutulmaz. Bu mesajin içerigi yazarina ait olup AvivaSA Emeklilik ve Hayat A.S.'nin görüslerini içermeyebilir.
>
> The information contained in this e-mail (including any attachments) is confidential. It must not be disclosed to any person without our authority. If you are not the intended recipient, please delete it from your system immediately. AvivaSA Emeklilik ve Hayat A.S. makes no warranty as to the accuracy or completeness of any information contained in this message and hereby excludes any liability of any kind for the information contained therein or for the information transmission, reception, storage or use of such in any way whatsoever. This message is scanned for known viruses by AvivaSA Emeklilik ve Hayat A.S. But Internet communications cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, arrive late or contain viruses. The AvivaSA Emeklilik ve Hayat A.S. therefore does not accept liability for any errors or omissions in the context of this message which arise as a result of Internet transmission. Any opinions expressed in this message are those of the author and may not necessarily reflect the opinions of AvivaSA Emeklilik ve Hayat A.S.


--
_______________________________________________
Ftpapi mailing list
Ftpapi@xxxxxxxxxxxxxxxxxxxxxx
http://scottklement.com/mailman/listinfo/ftpapi
[https://www.avivasa.com.tr/i/Assets/images/imza-avivasa.jpg]<https://www.avivasa.com.tr/otomatik-katilim?utm_source=kurumsal-email&utm_campaign=imza-banner>

Bu e-postanin içerdigi bilgiler (ekleri dahil olmak üzere) gizlidir. Onayimiz olmaksizin üçüncü kisilere açiklanamaz. Bu mesajin gönderilmek istendigi kisi degilseniz, lütfen mesaji sisteminizden derhal siliniz. AvivaSA Emeklilik ve Hayat A.S. bu mesajin içerdigi bilgilerin dogrulugu veya eksiksiz oldugu konusunda bir garanti vermemektedir. Bu nedenle bilgilerin ne sekilde olursa olsun içeriginden, iletilmesinden, alinmasindan, saklanmasindan sorumlu degildir. Bu mesajin bilinen virüslere karsi kontrolleri AvivaSA Emeklilik ve Hayat A.S. tarafindan yapilmistir. Ancak internet iletisiminde güvenlik ve hatasiz gönderim garanti edilemeyeceginden, mesajin yerine ulasmamasi, geç ulasmasi, içeriginin bozulmasi ya da mesajin virüs tasimasi gibi problemler olusabilir. AvivaSA Emeklilik ve Hayat A.S. bu tip sorunlardan sorumlu tutulmaz. Bu mesajin içerigi yazarina ait olup AvivaSA Emeklilik ve Hayat A.S.'nin görüslerini içermeyebilir.

The information contained in this e-mail (including any attachments) is confidential. It must not be disclosed to any person without our authority. If you are not the intended recipient, please delete it from your system immediately. AvivaSA Emeklilik ve Hayat A.S. makes no warranty as to the accuracy or completeness of any information contained in this message and hereby excludes any liability of any kind for the information contained therein or for the information transmission, reception, storage or use of such in any way whatsoever. This message is scanned for known viruses by AvivaSA Emeklilik ve Hayat A.S. But Internet communications cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, arrive late or contain viruses. The AvivaSA Emeklilik ve Hayat A.S. therefore does not accept liability for any errors or omissions in the context of this message which arise as a result of Internet transmission. Any opinions expressed in this message are those of the author and may not necessarily reflect the opinions of AvivaSA Emeklilik ve Hayat A.S.
-- 
_______________________________________________
Ftpapi mailing list
Ftpapi@xxxxxxxxxxxxxxxxxxxxxx
http://scottklement.com/mailman/listinfo/ftpapi