How to send curl command to the proxy with authentication?
search cancel

How to send curl command to the proxy with authentication?

book

Article ID: 217693

calendar_today

Updated On:

Products

ProxySG Software - SGOS Advanced Secure Gateway Software - ASG

Issue/Introduction

This article shows on how to send a curl command to the proxy with authentication.

Resolution

Below is an example on how to send the curl command:

curl -U username:password -x myproxy:8080 http://www.example.com --proxy-ntlm

 

Note: How to run curl commands on Windows:

From the Command Prompt, enter to the location where the executable file was pasted. To enter to the folder you need to use the "cd" command following the location of the folder which contains the executable file as you can see below. 

cd programs

Expected location to be shown

C:\Users\{your_user}\programs>

To verify if you are able to run curl commands with the command prompt, test functionality by executing the command below:

curl --help 

At this point, you should receive the all the help info related to the curl command.