Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
cedric05 authored Oct 18, 2024
1 parent da7ff02 commit 1164279
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions docs/request-basics.md
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ fileinput('C:\Users\john\documents\movie.mkv')
// < 'C:\Users\john\documents\movie.mkv'
```

### cURL Equivalent
### CURL Equivalent

Dothttp provides a simple way to generate cURL commands for your requests. Here's an example of a basic cURL request generated from a Dothttp request:

Expand All @@ -287,4 +287,16 @@ data("hai")

[Try it in your browser](https://cedric05.github.io/dothttp-playground/#eJwVx7EKgCAUBdDdr3g41WDu/kRBDa0PfaAganaL+vvobMdfPZPZaZnXjSLQTmdtl2MKFX+nILcyJgoH6aR9LZACg7eJI8gD2zKnolVg8KAjJz1+xJccfw==)

For more examples, consider exploring the [Dothttp Playground](https://ghpage.dothttp.dev/#eJx9j88KwjAMh+99itKLCrLe9xIKepe4RVdJm9o/wyG+u9WD2CHm0nxffqFEbDe7vVwMKfnYag3eNNFDh7eGwPX6HMAPV1pIcYnslnchS6lrxjCp9g1vodT9A1J2bD24SX67YpFr5hknPvjAPlM07Oajist/FWstFVpPPCFG9Td64ux67H+4UDmC7LrhEE3CWA0cWKxEzNZCmCpXltKP3REoQ5pfN+JgOqqiD/HdlRvWr2eEYOBYkqp1meghVuIJSlpmOA==).
For more examples, consider exploring the [Dothttp Playground](https://ghpage.dothttp.dev/#eJx9j88KwjAMh+99itKLCrLe9xIKepe4RVdJm9o/wyG+u9WD2CHm0nxffqFEbDe7vVwMKfnYag3eNNFDh7eGwPX6HMAPV1pIcYnslnchS6lrxjCp9g1vodT9A1J2bD24SX67YpFr5hknPvjAPlM07Oajist/FWstFVpPPCFG9Td64ux67H+4UDmC7LrhEE3CWA0cWKxEzNZCmCpXltKP3REoQ5pfN+JgOqqiD/HdlRvWr2eEYOBYkqp1meghVuIJSlpmOA==).


### Output

Dothttp allows you to save the HTTP response directly to a file. To do this, simply append >> "<full file path>" after your HTTP definition.

#### Example:

```http
GET "https://req.dothttp.dev"
>> "/tmp/out.resp.txt"
```

0 comments on commit 1164279

Please sign in to comment.