Compose a POST request using web component

How to pass Auth HTTP POST Request

@jared you gave me an idea

so i did some tests in 3 different apis i found online and this is what worked for me (my blocks should be self explanatory).

Notes:
don’t mind the naming conventions I was prototyping and too lazy to keep changing names.
Authorization for most apis i came accross was always Basic and you will need to convert your user:passwd to base64 encoding. some apis use apikey:(password is blank) refer to api docs
example lets say your your username:admin and password:passowrd1. go to a base64 encoder enter admin:password1 of and encode it. so for this case the block Authorization would look as such
Authorization “Basic YWRtaW46cGFzc3dvcmQx”

sources:
HTTP Header
base64encoder

1 Like