# cURL & wget

### cURL - Client for URLs

{% code title="Syntax" %}

```bash
curl IPorURL                  #Prints page source
curl IPorURL -o result.txt    #Saves the result on a file
curl -s IPorURL               #Silent mode, omits progress information


```

{% endcode %}

{% code title="Examples" %}

```bash
curl -s IP/file.xml | xmllint --format -  #Prints .xml file in an easy to read format

```

{% endcode %}


---

# Agent Instructions: 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:

```
GET https://malcrvz.gitbook.io/the-vx-files/network-pentesting/tools/2.-information-gathering/curl-and-wget.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
