NEW Check if your VPN is honest — a free subscription audit in 60 seconds →
← Back to library
Protocols Theory

XHTTP in practice: when to use it and how to check the whole chain

XHTTP can provide a different data path. Assess the whole chain rather than treating one successful connection as proof that the setup works.

Go to practice →

XHTTP is useful when a connection must pass through compatible HTTP infrastructure or when you need an additional route to a direct node. First draw the complete chain from the application to Xray: where TLS terminates, which component receives the HTTP request, and where it forwards that request. The diagram will show what to configure and where to look for errors.

Where XHTTP fits

The layers can be represented as follows:

text
Application → VLESS → XHTTP → TLS → HTTP infrastructure → server

This is a diagram of layers, not a ready-to-use configuration. In a real deployment, the TLS termination point and number of intermediary components may differ.

XHTTP is not another name for REALITY. The developer’s description covers different transfer modes and combinations with an outer security layer. For an initial understanding, distinguish packet-based uploads in packet-up, streaming uploads in stream-up, and a bidirectional stream in stream-one. Every component in the chain must support the selected mode.

Choose the first setup to test

For a direct connection, record the node address, transport, and security layer. For a reverse-proxy setup, add both segments: client to proxy, and proxy to the internal service. Keep the second segment in the diagram even when the browser already shows HTTPS.

A component that terminates TLS becomes a separate trust boundary. Decide how to protect the inner payload separately. Current capabilities at that layer are listed in the VLESS outbound configuration.

Do not apply that architecture to Hysteria automatically. Its official CDN explanation describes why ordinary HTTP proxying does not become compatible with Hysteria simply because HTTP/3 is available.

Change as little as possible initially

Keep the working profile and create a separate candidate for comparison. Change one understandable part of the setup in the first iteration. Replacing the server, application, transport, and parameters at once makes a successful result difficult to explain and a failure difficult to reproduce.

Check the profile actually received by the client after import and subscription updates. A setting shown in the panel may be lost during export or be unknown to the selected application. After updating the subscription, compare the received transport, path, and security layer with the expected values.

Test more than opening a site

Use a short acceptance procedure:

  • Connection. The application starts without manual profile editing.
  • Both directions. Downloads and uploads work with files large enough for the intended activity.
  • Idle recovery. A new request succeeds after a pause. A connection is not permanent merely because it was established once.
  • Duration. The required application keeps working beyond a brief reachability test.
  • Network changes. The result is reproducible after Wi-Fi and mobile-data changes, or the application reconnects clearly.
  • Updates. The subscription retains the selected setup and required parameters.

Keep certificate verification enabled when evaluating the result. Record the time, network, and error symptoms; keep keys, full URLs, and user data out of the report.

Where the route commonly fails

Symptom What to check
A 404, 403, or HTML page appears instead of a transport response Path, Host, and routing rules; the request may have reached the website or a CDN challenge page
A small download works but uploading a file does not The allowed method, request-body limits, and the intermediary’s upload handling
Connections fail after approximately the same interval Timeouts on each segment and limits on long-lived requests
A mode works directly but not through the intermediary Streaming support and request/response buffering throughout that chain

These are directions for investigation, not a diagnosis based on one HTTP status. For example, a 403 can come from origin access control or CDN protection. Identify which component returned it before changing Xray.

Conditions for using a CDN

The tunnel path must reach the correct upstream without caching user responses. Check methods, size limits, headers, buffering, and timeouts against the chosen intermediary’s documentation. Browser-side HTTP/2 support does not establish how the CDN-to-origin segment behaves.

The Xray gRPC documentation recommends moving toward XHTTP. Compare the new setup alongside the working one: if uploads fail or connections break after idle time, migration is not complete.

Continue with the XHTTP setup guide. If the connection is already configured but does not transfer data, follow the layer-by-layer diagnostics, retaining the working control profile.

Next guide Setting up XHTTP over Reality → ↗ Article unclear or something off? Message me and I will help or fix it. @notrealvpn →
This material is educational and covers network-infrastructure engineering. You are responsible for complying with the laws of your jurisdiction.