Tag Archives: cli

Set Auth Header Using cURL

If it comes to testing REST APIs I’m a big fan of Postman. But for quick and command line testing I always prefer to use cURL. For developing and testing protected endpoints we need to pass an authorization header. How can we do this with cURL? Example of using Bearer tokens: Example request (invalid token):… Read More »

Bulk Upload to S3

Install and configure AWS command line tools. Run following command to upload content of a directory from your local machine to the given S3 bucket: $ aws s3 cp <path to your src dir> s3://bucket-name/folder-name –recursive If you have configured IAM role, policy and profile that restrict access to S3 you should use the command:… Read More »