Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jefersonsv/curl-builder
Generator curl command line from request
https://github.com/jefersonsv/curl-builder
curl
Last synced: about 1 month ago
JSON representation
Generator curl command line from request
- Host: GitHub
- URL: https://github.com/jefersonsv/curl-builder
- Owner: jefersonsv
- License: mit
- Created: 2018-06-13T17:47:45.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-03-26T19:42:24.000Z (almost 6 years ago)
- Last Synced: 2024-04-04T14:33:38.424Z (10 months ago)
- Topics: curl
- Language: C#
- Size: 519 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Curl Builder
This library can render the curl command line (cmd or bash) from a HttpContext.
# Useful
It is used to help debugging, log and trace incoming request.# Sample
The sample project **aspnet-core-mvc** print to output visualstudio window when income a request* Default configuration
```
curl -XGET "-H Connection: Keep-Alive" "-H Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8" "-H Accept-Encoding: gzip, deflate, br" "-H Accept-Language: pt-BR,pt;q=0.9,en-US;q=0.8,en;q=0.7,es;q=0.6,ja;q=0.5" "-H Cookie: _ga=GA1.1.398854594.1528135872" "-H Host: localhost:44306" "-H User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.62 Safari/537.36" "-H upgrade-insecure-requests: 1" "-H MS-ASPNETCORE-TOKEN: 21ec59aa-82b1-4f11-940a-1406ddba7f84" "-H X-Original-Proto: http" "-H X-Original-For: 127.0.0.1:51218" https://localhost:44306/
```* Global Configuration
* MultiLine: true
* Format : Cmd```
curl ^
-XGET ^
"-H Connection: Keep-Alive" ^
"-H Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8" ^
"-H Accept-Encoding: gzip, deflate, br" ^
"-H Accept-Language: pt-BR,pt;q=0.9,en-US;q=0.8,en;q=0.7,es;q=0.6,ja;q=0.5" ^
"-H Cookie: _ga=GA1.1.398854594.1528135872" ^
"-H Host: localhost:44306" ^
"-H User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.62 Safari/537.36" ^
"-H upgrade-insecure-requests: 1" ^
"-H MS-ASPNETCORE-TOKEN: 5dccf8cb-2956-43d3-bc40-a1654bf56402" ^
"-H X-Original-Proto: http" ^
"-H X-Original-For: 127.0.0.1:49179" ^
https://localhost:44306/
```