---
title: "POST /httpprotocol"
method: POST
path: "/httpprotocol"
tags: ["httpprotocol"]
---

# POST /httpprotocol

`POST /httpprotocol`

Detect supported HTTP protocol versions for a given URL

## Request body

- HttpProtocolDto
  - `url` string, required — Target URL
  - `followRedirect` boolean — Whether to follow redirects when checking site status

## Response `200`

HTTP protocols detected successfully

- HttpProtocolResponseDto
  - `timestamp` number, required — Timestamp of the request in milliseconds
  - `apiStatus` 'success' | 'failure', required — API status message
  - `apiCode` number, required — API status code
  - `meta` HttpProtocolMetaDto, required
    - `url` string, required — The tested URL
    - `followRedirect` boolean — Indicates if redirects should be followed
    - `redirectedURL` string — Final URL after redirection (if any)
    - `test` TestMetaDto, required
      - `id` string, required — Unique test identifier
  - `data` HttpProtocolDataDto, required
    - `http10` boolean, required — Indicates if HTTP/1.0 is supported
    - `http11` boolean, required — Indicates if HTTP/1.1 is supported
    - `http2` boolean, required — Indicates if HTTP/2 is supported
    - `http3` boolean, required — Indicates if HTTP/3 is supported
    - `http3SupportedVersion` string[], required — Lists supported HTTP/3 protocol variants

## Other responses

- `400` — Bad request (invalid parameters)
- `500` — Internal server error

---

[API](https://skmtc.net/geekflare/apis/geekflare-api.md) · [All operations](https://skmtc.net/geekflare/apis/geekflare-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/geekflare/geekflare-api/revisions/936993afc936/schema)
