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

RE: Urgent help needed to http request



You really did not outline what you were trying to do.
I just started using Scotts routines
And after much time, these are the 2 I found most useful.

To get cookie and put the response (Not the http response, but what they
sent back to me) into a variable. 

eval       rc = http_url_get_raw(                           
           'https://trig.e.someaddr.com'+               
           '/api/login1?name=MyID'+                    
           '&cleartext=MyPassword'                           
          : 3                                               
          : %paddr('INCOMING'))                             

To post and put and put the response into a variable
eval      rc = http_url_post_raw(                         
           'https://trig.e.someaddr.com/' +           
               'ebm/ebmtrigger1?'                         
          : myPointer                                     
          : dataSize                                      
          : 5                                             
          : %paddr('INCOMING')                            
          : HTTP_TIMEOUT                                  
          : HTTP_USERAGENT                                
          : 'application/x-www-form-urlencoded' )   

-- Jim

-----Original Message-----
From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
[mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of
IT-Service&Programmierung
Sent: Tuesday, May 05, 2009 11:17 AM
To: ftpapi@xxxxxxxxxxxxxxxxxxxxxx
Subject: Urgent help needed to http request

hello @all, hello Scott,
with my question I come out as a newbie, but I didn't know an other way.
I have no know-how with RPG and Internet and now I have a requirement to
make a http-request from a RPG-program - as possible with
high-performance.
I think the example2 is the best way to do my requirement, but it is
although difficult for me to translate it to my current problem. 

The data for transfer are:

POST capture.html HTTP/1.0
Content-Type: application/x-www-form-urlencoded
Content-Length: 175
ID=xxx&Here comes the sending data

 

The data for response are:

 

POST capture.html HTTP/1.0
Content-Length: 55
RC=0& ID=xxx&Here comes the received data  

 

Perhaps there is someone who can put me with my nose on the solution,
that means someone can give me the detailed coding for process the
transfer and get the response.

What is to mind when I must use a https-request?


thx @all

 

 

 

Wolfgang Tigges

 

eMail:  <mailto:W.Tigges@xxxxxxxxxxxxxxxx> W.Tigges@xxxxxxxxxxxxxxxx




----------------------------------------------------------------
CONFIDENTIALITY NOTICE: This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and proprietary information.  Any unauthorized review, use, disclosure or distribution is prohibited.  If you are not the intended recipient(s), please contact the sender by reply e-mail and destroy all copies of the original message. 
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------