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

RE: returning more than 8192 bytes



Scott,
Is Response a char field, or a pointer?
I am having trouble getting that line to compile...



-----Original Message-----
From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx [mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Scott Mildenberger
Sent: Tuesday, October 28, 2014 2:01 PM
To: HTTPAPI and FTPAPI Projects
Subject: RE: returning more than 8192 bytes

Your Process function will be called repeatedly until you get all the data, I also changed the Process procedure parm peData to be 65535.
Here is the code in my procedure that just adds all the data together.

  if peLength > 0;                                 
    HTTP_xlate(peLength : peData : TO_EBCDIC);     
                                                   
    Response += %subst(peData : 1 : peLength);     // NOTICE the +=
  ENDIF;                                           

After the url_get_raw is completed you have a procedure to actually process the entire response.

Scott

-----Original Message-----
From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx [mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Gerald Magnuson
Sent: Tuesday, October 28, 2014 12:09 PM
To: HTTPAPI and FTPAPI Projects (ftpapi@xxxxxxxxxxxxxxxxxxxxxx)
Subject: returning more than 8192 bytes

I am attempting to change from http_url_get to http_url_get_raw...

I have:
rc = http_url_get_raw(URL:
                      rtnFD:
                      %paddr(Process) :
                      timeout) ;

<<top of Process procedure...>>
// convert to EBCDIC
  http_xlatep (Len
              : %addr(Data)
              : TO_EBCDIC)     ;
 docNode =
    yajl_buf_load_tree( %addr(Data) : %len(%trim(Data)) : errMsg);
   if errMsg <> '';

my LEN var is 8192, and my input Data ends there...

is there some looping I need to do to get the rest of my data?



-----------------------------------------------------------------------
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
-----------------------------------------------------------------------