fake-http-header
Generates random request fields for a http request header
Decision gist · record as of 2026-08-14
Yes, if you need to generate realistic HTTP headers for web scraping or testing. It has no dependencies, installs easily, carries a permissive MIT license, and has modest popularity. The aging maintenance status is a minor concern; verify that its browser and referrer pools remain effective for your use case.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Low friction: pure Python wheel with no runtime dependencies.
- Maintenance is aging—last release was 2024-10-15, though the repository remains unarchived.
License · maintenance · safety
MIT (permissive) — MIT license permits free use, modification, and distribution with minimal restrictions, making it suitable for both open-source and commercial projects.
last release 2024-10-15 (668 days) · last repo commit 2025-07-09 · 44 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 653,930 downloads/mo, #5,532 on PyPI
Alternatives
Verify before relying
pip install fake-http-header
from fake_http_header import FakeHttpHeader
fake_header = FakeHttpHeader()
header_dict = fake_header.as_header_dict()- How comprehensive is the pool of browser user agents and referrer domains covered by the package
- Whether the generated headers pass modern bot-detection systems or are primarily useful for testing
- Quality and frequency of maintenance relative to changes in real browser header formats
What it is and what it does
fake-http-header is a lightweight Python package that generates random HTTP request headers designed to look like they come from real web browsers. It works by mapping browsers to default header values and emulating typical user behavior patterns. The package generates randomized user agents, accept-language fields, accept-encoding, accept types, and referrer URLs that appear plausible together—for instance, if you specify a domain code, it will pair that with matching language preferences and a corresponding referrer.
The primary use case is creating headers for web crawlers and automated HTTP requests. It provides a simple API: instantiate FakeHttpHeader with optional domain parameters, then call as_header_dict() to get a dictionary compatible with standard HTTP libraries. With no external dependencies and support for Python 3.6 and above, it installs and runs with minimal friction.
Use it for
- Write web scrapers that send realistic browser headers to avoid simple bot-detection filters
- Test web applications by simulating requests from different geographic regions and browsers
- Generate plausible HTTP headers for automated testing frameworks that need to mimic real client behavior
- Populate header fields in security testing scenarios where realistic headers are needed
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need to generate realistic HTTP headers for web scraping or testing.
It has no dependencies, installs easily, carries a permissive MIT license, and has modest popularity. The aging maintenance status is a minor concern; verify that its browser and referrer pools remain effective for your use case.
Install
fake-http-header on PyPI
Before you install
Low friction: pure Python wheel with no runtime dependencies. Maintenance is aging—last release was 2024-10-15, though the repository remains unarchived.
License in practice
MIT license permits free use, modification, and distribution with minimal restrictions, making it suitable for both open-source and commercial projects.
Quickstart
pip install fake-http-header
from fake_http_header import FakeHttpHeader
fake_header = FakeHttpHeader()
header_dict = fake_header.as_header_dict()
Verify before relying
- How comprehensive is the pool of browser user agents and referrer domains covered by the package
- Whether the generated headers pass modern bot-detection systems or are primarily useful for testing
- Quality and frequency of maintenance relative to changes in real browser header formats
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.6 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Aging 668 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 653,930 / month, #5,532 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
Evidence: fake_http_header-0.3.5-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “random http header generator”
- fake-http-headerGenerates realistic-looking HTTP request headers with randomized user…
- user-agentGenerates random, valid web user agent strings for HTTP headers and…
- fake-headersGenerates realistic User-Agent strings and HTTP headers locally…
Give your agent the search over MCP, or paste the wish link into any chat.
More WWW/HTTP packages
urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.
Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.
h11 is a pure-Python HTTP/1.1 protocol implementation that handles parsing and serializing HTTP messages without any built-in I/O, letting you integrate it with any network layer you choose.
HTTPX is a fully featured HTTP client library for Python that provides both sync and async APIs, with support for HTTP/1.1 and HTTP/2, plus an integrated command-line client.
Install it if you are building new projects or modernizing existing ones that rely on HTTP.
A minimal low-level HTTP client library that sends HTTP requests with thread-safe and task-safe connection pooling, supporting HTTP/1.1, HTTP/2, proxies, and both sync and async interfaces.
aiohttp is an async HTTP client and server framework built on asyncio, supporting both WebSockets and middleware-based routing for building concurrent web applications.
Install it if you need async HTTP client or server capabilities in asyncio-based applications.
See also fake-headers · fake-useragent · browserforge · user-agent · ua-generator · primp · latest-user-agents · uncurl · wrapper-tls-requests · faker-e164