http-post-from-execute-code

Send long JSON POST requests via Python's urllib.request without truncation.

Updated Apr 30, 2026
One-click install
npx skills add https://github.com/lxh755818-bot/obsidian-vault --skill http-post-from-execute-code
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: http-post-from-execute-code
Source: https://github.com/lxh755818-bot/obsidian-vault/tree/main/backup/skills/tooling/http-post-from-execute-code
Command: npx skills add https://github.com/lxh755818-bot/obsidian-vault --skill http-post-from-execute-code

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill solves the issue of truncation in long JSON POST requests when using terminal/curl, which can lead to parse errors and incorrect submissions.

Core Features & Use Cases

  • Avoids Truncation: Sends JSON POST requests of any length without truncation.
  • Termux Compatibility: Designed for use in Termux, overcoming shell argument length limits.
  • Use Case: Ideal for sending code blocks, long text answers, or structured data via API where terminal/curl may fail.

Quick Start

Use the http-post-from-execute-code skill to send a long JSON POST request to 'https://api.example.com/endpoint' with the following data: {'key': 'value', 'long_answer': '...'}.

Frequently Asked Questions about http-post-from-execute-code

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I send long JSON POST requests without truncation in Termux?

To send long JSON POST requests without truncation in Termux, use Python's urllib.request to execute the HTTP call directly. This bypasses terminal shell argument length limits that cause curl to truncate large payloads.

Why does my JSON POST request get truncated when using curl in Termux?

Your JSON POST request gets truncated in Termux because the terminal shell imposes strict argument length limits on curl commands. Using Python's urllib.request executes the HTTP call within the interpreter, avoiding shell truncation entirely.

Can I use Python urllib.request to send large API payloads on mobile?

Yes, you can use Python urllib.request to send large API payloads on mobile platforms like Termux. It processes JSON POST data internally without relying on shell arguments, preventing payload truncation and parse errors.

What is the best way to send structured data or long text answers via an API from a terminal?

The best way to send structured data or long text answers via an API from a terminal is using Python's urllib.request. It handles arbitrarily long JSON POST payloads natively, avoiding the parse errors associated with truncated curl commands.

Do I need a specific Python environment to avoid shell truncation for API calls?

You need a standard Python environment with built-in urllib.request support to avoid shell truncation for API calls. No external dependencies are required, making it highly compatible and easy to set up in environments like Termux.

Are there limitations to sending JSON POST requests using Python instead of curl?

Using Python instead of curl for JSON POST requests has no specific limitations mentioned for handling large data. It successfully overcomes terminal shell argument length limits, though it requires a Python environment to execute the script.