Page 1 of 1

-u Curl parameter

Posted: Fri Jun 21, 2019 8:02 am
by Deon

Hi

I am connecting to an external API that requires the use of the cURL -u parameter.

Where and how would I apply this parameter in a service?

Thank you


-u Curl parameter

Posted: Fri Jun 21, 2019 8:22 am
by Serhii Kulibaba

Hello Deon,

This is the parameter for the Basic Authentication, so please transform it to the base64 string and pass it to the server, like it is shown here: https://stackoverflow.com/questions/3...


-u Curl parameter

Posted: Sat Jun 22, 2019 12:49 pm
by Deon

Hi Serhii

I dont understand what you are trying to say, my question is where do I applythe same example for Postman, in the Appery service. There is no "Authorization" tab in Appery service request, only Header and Query String.

I tried settings service and security service but neither works.


-u Curl parameter

Posted: Sat Jun 22, 2019 3:16 pm
by Deon

Ok, so I reversed engineered a POSTMAN call to the API.
.
It resulted in the fact that I needed to use the Appery Header with a parameter called
Authorization and the the value containing Basic with both the Username and Password values combined (I presume the base64 string)


-u Curl parameter

Posted: Mon Jun 24, 2019 2:19 pm
by Serhii Kulibaba

You are right, you have to use a header parameter "Authorization" for that