Skip to content

Commit

Permalink
added proxy settings
Browse files Browse the repository at this point in the history
  • Loading branch information
stevleibelt committed Feb 11, 2020
1 parent 72990ad commit 59cffa9
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions operation_system/unix/curl.md
@@ -1,23 +1,33 @@
# Add a cacert
# How To

## Add proxy

```
#best is to do this in the .bashrc or initial shell setup
export http_proxy=http://<ip>[:<port>]
export https_proxy=http://<ip>[:<port>]
```

## Add a cacert

```
cd /etc/ssl/certs
wget http://curl.haxx.se/ca/cacert.pem
```

# force usage of ssl version 3
## Force usage of ssl version 3

```
curl -3 https://foo.bar
```

# allow insecure ssl
## Fllow insecure ssl

```
curl [-k|--insecure] <url>
```

# add http status code output to response
## Add http status code output to response

```
#http://superuser.com/questions/272265/getting-curl-to-output-http-status-code
Expand All @@ -26,6 +36,6 @@ curl -i <url>
curl -sw '\nhttp status code: %{http_code}' <url>
```

# links
# Links

* http://curl.haxx.se/docs/httpscripting.html

0 comments on commit 59cffa9

Please sign in to comment.