> For the complete documentation index, see [llms.txt](https://docs.pynt.io/documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.pynt.io/documentation/security-testing-integrations/advanced-pynt-examples/pynt-with-curl.md).

# Pynt with cURL

{% hint style="success" %}
🚀 **At a Glance**: Pynt integrates effortlessly with **cURL**, allowing you to incorporate API security testing into your command-line workflows. By making HTTP requests with cURL, Pynt can automatically generate security tests and execute them without additional setup. This integration is perfect for users looking to automate security checks directly from scripts or command-line tools, ensuring that all requests are thoroughly tested for vulnerabilities.
{% endhint %}

***

## What is cURL?

[**cURL** ](https://curl.se/)is a widely used command-line tool that enables data transfer over various network protocols, including HTTP, HTTPS, FTP, and more. Developers and system administrators frequently use cURL to send requests, test APIs, download files, and debug network services. It supports a vast range of options for handling headers, authentication, and data formats, making it a flexible and powerful tool for network communication.

<figure><img src="/files/9XraQnBG2rSrLUp3awfj" alt="" width="188"><figcaption><p>cURL</p></figcaption></figure>

***

## Setup

1. First, make sure Pynt's [prerequisites](/documentation/api-security-testing/prerequisites-for-running-pynt-scans.md) are met.
2. Follow the instructions to install Pynt container [here](/documentation/api-security-testing/how-to-install-pynt-cli.md).

***

## Example of Pynt with cURL

Pynt can work even on a single curl line, just add the following:

1. `--proxy 127.0.0.1:6666`
2. `--insecure`&#x20;
3. `escape all " to '/"`

For example running on one request to goat application:

```bash
pynt command --cmd 'curl --location '\''http://44.202.3.35:6000/account'\'' \
--header '\''Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VySWQiOiJhYTc4NmI5ZS03NDZiLTQ4M2EtYTI2YS0xMDVlZjBmNDY2ZTYifQ.5wiIckUlguqJRUY36szfN0K3FLsfT34tXey_K4JPYIk'\'' \
 --insecure --proxy 127.0.0.1:6666'
```

***

{% hint style="info" %}
💡 **Pynt CLI Troubleshooting**: If you're encountering issues with Pynt's CLI, visit the [**Pynt CLI Troubleshooting Guide**](https://docs.pynt.io/documentation/api-security-testing/pynt-scans-troubleshooting/pynt-cli-troubleshooting) for solutions and troubleshooting tips.
{% endhint %}

{% hint style="info" %}
💡 **Still Need Help?** For any questions or troubleshooting, reach out to the [**Pynt Community Support**](https://www.pynt.io/community).
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.pynt.io/documentation/security-testing-integrations/advanced-pynt-examples/pynt-with-curl.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
