<commit_before>---
title: Curl
layout: default
---

Options:

    -o <file>    # --output: write to file
    -u user:pass # --user: Authentication

    -v           # --verbose
    -vv          # Even more verbose

Request:

    -X POST          # --request

Data options:

    -d 'data'    # --data: HTTP post data, URL encoded (eg, status="Hello")
    -d @file     # --data via file
    -G           # --get: send -d data via get

Headers:

    -A <str>         # --user-agent
    -b name=val      # --cookie
    -b FILE          # --cookie
    -H "X-Foo: y"    # --header
    
SSL:

    --cacert <file>
    --capath <dir>

    -E <cert>     # --ecrt: Client cert file
    --cert-type   # der/pem/eng

## Examples

    # Post data:<commit_msg>curl: add -I<commit_after>---
title: Curl
layout: default
---

Options:

    -o <file>    # --output: write to file
    -u user:pass # --user: Authentication

    -v           # --verbose
    -vv          # Even more verbose

    -I           # --head: headers only

Request:

    -X POST          # --request

Data options:

    -d 'data'    # --data: HTTP post data, URL encoded (eg, status="Hello")
    -d @file     # --data via file
    -G           # --get: send -d data via get

Headers:

    -A <str>         # --user-agent
    -b name=val      # --cookie
    -b FILE          # --cookie
    -H "X-Foo: y"    # --header
    
SSL:

    --cacert <file>
    --capath <dir>

    -E <cert>     # --ecrt: Client cert file
    --cert-type   # der/pem/eng

## Examples

    # Post data:
{'fraction_non_alphanumeric': 0.1522875816993464, 'fraction_numerical': 0.0, 'mean_word_length': 1.323216995447648, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4747036', 'n_tokens_mistral': 546, 'n_tokens_neox': 521, 'n_words': 165}