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

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



Hi Jacob,

It looks like your using the simplified version of the encoder (http_url_encoder_addvar_s), which is limited to 256 characters (procedures ending with "_s" are considered "simplified") .  Try using the full sub-procedure (http_url_encoder_addvar), which is the same procedure name, less the "_s".  This should solve your limitation problems.

Carl Forshey
Commsoft


-----Original Message-----
From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
[mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Jacob
Christensen
Sent: Tuesday, December 11, 2007 7:05 AM
To: 'ftpapi@xxxxxxxxxxxxxxxxxxxxxx'
Subject: 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
-----------------------------------------------------------------------


The information contained in this electronic mail transmission is intended by Communications Software Consultants, Inc. for the use of the named individual or entity to which it is directed
and may contain information that is privileged or otherwise confidential. If you have received this electronic mail transmission in error, please notify the sender immediately and delete this
message from your system without copying or forwarding it.
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------