Search found 12 matches

by Bruceg
Tue Apr 30, 2024 11:55 am
Forum: HTTPAPI
Topic: OUATH2
Replies: 13
Views: 4509

Re: OUATH2

Thank you for your quick response. I have been programming for a long time but was unaware of the ILE debugger constraint of 1024 characters. 661 'TQ0OTIxMDksImlhdCI6MTcxNDQ3NzcwOSwianRpIjoiNzJjNWNlZmMtNDdiM' 721 'S00MzFlLWExNmEtMTVkMzU1Nzc3OTNlIn0.DnnM8Wzw3N25VlZ8brVVsAhF4' 781 '3LqpkuU7u8dpPA8FRVi...
by Bruceg
Mon Apr 29, 2024 4:58 pm
Forum: HTTPAPI
Topic: OUATH2
Replies: 13
Views: 4509

Re: OUATH2

I am getting a strange result when using HTTP_req 0136.00 dcl-s RESULTS varchar(1600000) ; 0436.00 rc = http_req( 'POST' 0437.00 :'https://wwwcie.ups.com/security/v1/oauth/token' 0438.00 : *omit 0439.00 : resultS // String to receive the results 0440.00 : *omit 0441.00 : 'grant_type=client_credentia...
by Bruceg
Thu Apr 11, 2024 6:10 pm
Forum: HTTPAPI
Topic: OUATH2
Replies: 13
Views: 4509

Re: OUATH2

I think getting the token was my biggest battle.
by Bruceg
Thu Apr 11, 2024 11:35 am
Forum: HTTPAPI
Topic: OUATH2
Replies: 13
Views: 4509

Re: OUATH2

Thank you both so much for your help. I am now able to get the token. My next step is to get the tracking information from UPS. I have been using your example for years but will need to modify it use the token rather than the access key.
by Bruceg
Wed Apr 10, 2024 4:20 pm
Forum: HTTPAPI
Topic: OUATH2
Replies: 13
Views: 4509

Re: OUATH2

I am still having problems with this . The curl is below and all I am trying to do is run this using HTTPAPI. The userid and password are not correct below. Rather I use the client id and secret id given to me by UPS. curl -i -X POST \ -u bruce.goltzman@mckesson.com:Bmg6512933467# \ https://wwwcie.u...
by Bruceg
Tue Apr 09, 2024 3:44 pm
Forum: HTTPAPI
Topic: OUATH2
Replies: 13
Views: 4509

Re: OUATH2

I made some changes but for some reason it still thinks I am using JSON. I am baffled. http_debug(*ON: '/home/mydebuglog.txt'); http_setAuth(HTTP_AUTH_BASIC: %trim(userid):%trim(pass)); http_setOption('timeout': '30'); http_setOption('network-ccsid': '1208'); rc = http_req( 'POST' :'https://wwwcie.u...
by Bruceg
Fri Mar 22, 2024 5:58 pm
Forum: HTTPAPI
Topic: OUATH2
Replies: 13
Views: 4509

OUATH2

Can anyone see what I am doing wrong? I am trying to get an ouath token from UPS . For user id I am sending the client id and for password i am sending the ups secret password. http_setAuth(HTTP_AUTH_BASIC: 'userid': 'pass'); http_setOption('timeout': '30'); http_setOption('network-ccsid': '1208'); ...
by Bruceg
Tue Apr 05, 2022 11:57 am
Forum: HTTPAPI
Topic: tracking of UPS packages
Replies: 8
Views: 3246

Re: tracking of UPS packages

In the event anyone else has this issue. I have been using this URL for years :http_url_post_xml('https://wwwcie.ups.com/ups.app/xml/Track'. I changed it to http_url_post_xml('https://onlinetrack.ups.com/ups.app/xml/Track' . With this change my program now works as it did before . Correct me if I am...
by Bruceg
Sat Apr 02, 2022 1:25 pm
Forum: HTTPAPI
Topic: tracking of UPS packages
Replies: 8
Views: 3246

Re: tracking of UPS packages

Thanks for your help

Bruce
by Bruceg
Fri Apr 01, 2022 8:49 pm
Forum: HTTPAPI
Topic: tracking of UPS packages
Replies: 8
Views: 3246

Re: tracking of UPS packages

Thanks i re downloaded the library , deleted my old LIBHTTP , restored the downloaded version recompiled the program I have been using but, unfortunately I get the same results. CALL MSR123B (GSKit) Peer not recognized or badly formatted message received. (GSKit) An operation which is not valid for ...