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

Re: [Ftpapi] I need to pass my post data as json...



Thanks…

We are already using yajl…

That is my next step, to parse the returning json.

 

 

 

 

Gerald Magnuson | Senior System I Admin


The Knapheide Manufacturing Company
1848 Westphalia Strasse // P.O. Box 7140 // Quincy, IL // 62305-7140
P: 217-592-5291 //   F: 217-592-5046 // www.knapheide.com

    

 

From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx [mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Hayden, Chris
Sent: Friday, February 24, 2017 12:45 PM
To: FTPAPI/HTTPAPI mailing list <ftpapi@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: [Ftpapi] I need to pass my post data as json...

 

Check out the following link

 

http://www.scottklement.com/yajl/

 

 

 

 

https://mail.pilotpen.com/EmailSignature/PilotPower2Penemail.png 

www.pilotpen.us

Chris Hayden   Sr. Systems Analyst
Office: (904) 645-9999 ext.1252
Mobile: 904-654-4089
Pilot Corporation of America
3855 Regent Blvd, Jacksonville, Florida 32224 United States

This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited. Opt Out 

From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx [mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Gerald Magnuson
Sent: Friday, February 24, 2017 1:37 PM
To: HTTPAPI and FTPAPI Projects (ftpapi@xxxxxxxxxxxxxxxxxxxxxx) <ftpapi@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: [Ftpapi] I need to pass my post data as json...

 

I got it figured out

(after I was pointed to the archive)   J

 

                                             

Rqst_body = '{"typeId":"6"}';                

dataSize = 14;                               

                                              

http_xproc( HTTP_POINT_ADDL_HEADER           

            : %paddr(add_headers) );         

                                              

rc=http_url_post_raw(                        

'https://XXX.YYYYzYYY.zzz' +                

'/app/search':                               

%addr(Rqst_body): dataSize :                 

1: %paddr('INCOMING')                        

:HTTP_TIMEOUT                                

:HTTP_USERAGENT                              

: 'application/json' );                      

                                              

 

Gerald Magnuson | Senior System I Admin


The Knapheide Manufacturing Company
1848 Westphalia Strasse // P.O. Box 7140 // Quincy, IL // 62305-7140
P: 217-592-5291 //   F: 217-592-5046 // www.knapheide.com

    

 

From: Gerald Magnuson
Sent: Friday, February 24, 2017 11:48 AM
To: HTTPAPI and FTPAPI Projects (ftpapi@xxxxxxxxxxxxxxxxxxxxxx) <ftpapi@xxxxxxxxxxxxxxxxxxxxxx>
Subject: I need to pass my post data as json...

 

I need to figure out how to write json directly to the request body….

 

With the following code:

      Form = WEBFORM_open;                                              

     WEBFORM_SetVar(Form: 'typeId': '6' );                          

    WEBFORM_postData( Form : myPointer                               

       : dataSize );

 

I wind up with:           typeID=6

 

In my request body….

 

But I need to have:

 

{“typeId”:6}

 

 

Is there some way to use WEBFORM to pass json?

                                                    

                                                                   

 

 

 

Gerald Magnuson | Senior System I Admin


The Knapheide Manufacturing Company
1848 Westphalia Strasse // P.O. Box 7140 // Quincy, IL // 62305-7140
P: 217-592-5291 //   F: 217-592-5046 // www.knapheide.com

    

 

_______________________________________________
Ftpapi mailing list
Ftpapi@xxxxxxxxxxxxxxxxxxxxxx
http://scottklement.com/mailman/listinfo/ftpapi