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

RE: HTTP Get w/ Additional Header Info



In one of my old examples, I found this snippet of adding a parameter to the header:

D addl_hdr        PR                                             
D   addl_data                 1024A   varying                    
                                                                 
c                   callp     http_xproc(HTTP_POINT_ADDL_HEADER: 
c                                        %paddr('ADDL_HDR'))     
                                                                 
P addl_hdr        B                                                    
D addl_hdr        PI                                                   
D   addl_data                 1024A   varying                          
c                   eval      addl_data = 'Accept-encoding: ' +        
c                                         'gzip' + x'0d25'             
P                 E                                                    

This thread talks a little about it in the first response from Scott.
http://www.scottklement.com/archives/ftpapi/200802/threads.html#00039



> -----Original Message-----
> From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx [mailto:ftpapi-
> bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Stephen Piland
> Sent: Tuesday, June 29, 2010 12:05 PM
> To: ftpapi@xxxxxxxxxxxxxxxxxxxxxx
> Subject: HTTP Get w/ Additional Header Info
> 
> Is it possible to send additional header info when doing a HTTP Get?
> Kind
> of like parameters for a specific request?  Or is a URL with that info
> 'embedded' a better way to do it?
> 
> 
> 
> Thanks for any suggestions!
> 
> 
> 
> 

-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------