# HTTP

> HTTP is an Agent Skill for apps & automation published in the Mic92/dotfiles repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Make HTTP requests using hurl. Use for accessing websites/apis

- Skill name: `http`
- Category: [Apps & Automation](https://www.openparable.com/skill/apps-automation/1)
- Source: https://github.com/Mic92/dotfiles/blob/HEAD/machines/eve/modules/opencrow/skills/http/SKILL.md
- Repository: Mic92/dotfiles (760 GitHub stars when collected)

## SKILL.md

# hurl

```bash
# GET HTML
hurl <<'EOF'
GET https://example.org
HTTP 200
[Asserts]
xpath "normalize-space(//head/title)" == "Hello world!"
EOF

# Chain requests with captures
hurl <<'EOF'
POST https://api.example.com/login
Content-Type: application/json
{"user": "me", "pass": "secret"}
HTTP 200
[Captures]
token: jsonpath "$.token"

GET https://api.example.com/resource
Authorization: Bearer {{token}}
HTTP 200
EOF
```

Flags: `--variable key=val`, `--test` (assert mode).

---

Source: https://www.openparable.com/skill/apps-automation/http (OpenParable). Cite the canonical URL above.
