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

How to pass *nopass parameters.



Title: Mensaje
Hi, i'm using HTTPAPI.
 
I need to send data with teh post method.
 
By definition, the procedure needs this parameters
*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
*  http_url_post(): Post data to CGI script and get document          
*                                                                     
*         peURL = url to post to (
http://www.blah.com/cgi-bin/etc)    
*    pePostData = pointer to data to post to CGI script.              
* pePostDataLen = length of data to post to CGI script.               
*   peFileName  = Filename in IFS to save response into               
*    peTimeout  = (optional) give up if no data is received for       
*            this many seconds.                                       
* peContentType = (optional) content type to supply (mainly           
*            useful when talking to CGI scripts)                      
*  peSOAPAction = (optional) string used to specify the action        
*          taken by some SOAP applications.                           
 
 *++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
D http_url_post   PR            10I 0                                
D  peURL                     32767A   varying const options(*varsize)
D  pePostData                     *   value                          
D  pePostDataLen                10I 0 value                          
D  peFilename                32767A   varying const options(*varsize)
D  peTimeout                    10I 0 value options(*nopass)         
D  peUserAgent                  64A   const options(*nopass)         
D  peContentType                64A   const options(*nopass)         
D  peSOAPAction                 64A   const options(*nopass)
         
 
 
I need to change de peContentType parameter, I try to call the procedure with *OMIT but yhe compiler doesn't let my.
 
And I call the procedure this way.
 
c                   eval      rc = http_url_post(                   
c                             'HTTP://dm.pan-energy.com/edmslabs/' +
c                               'pagepost.asp':                     
c                             %addr(data): %len(%trimr(data)):      
c                             '/tmp/test_post_edms2.html'     :     
c                             30 :                                  
c                             'http-api/1.0' :                      
c                             'aplication/x-www-form-urlencoded')   
 
Is there any way to write the 4th and 5th parameter with a "default" ??.
 
Thanks.
Best regards
 
 
 
 
Lic. Nicolás Machado
Metodo Argentina S.A. 
(Web Site : www.metodo.com.ar )
Hay 10 tipos de personas en el mundo: aquellas que entienden los binarios y aquellas que no.
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.788 / Virus Database: 533 - Release Date: 01/11/2004