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

HTTPAPI (version 1.20) - Sending values longer than 256 problem.



Hello !

Im new to using HTTPAPI and is having one problem with longer than 256 char
values in the query string !

Problem.
I want to use the api to send some rather long texts but they seams to be
cut off at 256 length during the urlencoding process.
Everything works fine - but when I investigate that data recived theVALUE1_V
has been cut down to a length of 256 chars.

My code looks like this: (simplified.)

D Enc             s                   like(HTTP_URL_ENCODER) 
D VALUE1_V         S           8000A   Varying  
D NAME_V          S             32A   Varying  



c                   callp     http_url_encoder_addvar_s( Enc        
c                                                      : NAME_V     
c                                                      : VALUE_V )  


c                   callp     http_url_encoder_getptr( Enc        
c                                                    : myPointer  
c                                                    : dataSize ) 


c                   eval      rc = http_url_post(                    
C                               REMOTE_V                             
c                             : myPointer                            
c                             : dataSize                             
c                             : '/tmp/Sdindex.html'                  
c                             : 600                                  
C                             : 'http-api/1.20'                      
C                             : 'application/x-www-form-urlencoded') 
c                   if        rc <> 1                                


Is This a know limitation ?
Is this a thing i can develop a fix for / or does a workaround exists ?
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------