Custom HTTP methods and separated Uplink/Downlink for xhttp
Is your feature request related to a problem?
Hello @MHSanaei, Thank you for your amazing work and continuous updates on the 3x-ui panel! Currently, the xhttp transport settings in the panel only support a limited set of methods (GET, POST, PUT). I would like to request an advanced configuration feature that allows users to: Choose from a wider range of HTTP methods (e.g., PATCH, DELETE, OPTIONS). Manually define different methods for uplink and downlink requests. For comparison, the Remnawave panel already provides this feature, allowing users to deeply customize their uplink and downlink queries. Implementing a similar flexible setup in 3x-ui would be incredibly useful for advanced anti-DPI bypassing and finer connection tuning. Are there any plans or an ETA for adding this level of customization to xhttp in future releases? Thanks in advance!
Describe the solution you'd like
In the Inbounds settings, when the xhttp network transport is selected, the UI should be updated as follows:
- Method Selection: Expand the current "HTTP Method" dropdown to include more predefined methods (PATCH, DELETE, OPTIONS, HEAD) or allow custom text input.
- Split Uplink/Downlink: Add a UI toggle switch (e.g., "Separate Uplink/Downlink").
- New UI Fields: When the toggle is enabled, display two distinct input fields: Uplink Method and Downlink Method.
- Backend Behavior: The backend should parse these inputs and correctly map them into the generated Xray JSON configuration for the
xhttptransport.
Edge case handling: If a user enables the separation but leaves one of the fields (e.g., Downlink) empty, the panel should either show a UI validation error or automatically fall back to a safe default to prevent generating a broken Xray config.
Alternatives you've considered
Currently, the only alternative is to manually edit the Xray configuration file on the server. However, since 3x-ui manages the config, any manual changes are immediately overwritten whenever the panel updates an inbound or restarts. The other alternative is migrating to a different panel (like Remnawave), which I would prefer not to do because 3x-ui is great.
Concrete use case
In regions with advanced Deep Packet Inspection (DPI), standard symmetrical GET/POST xhttp requests can sometimes be fingerprinted. By separating the methods (for example, using POST or PUT for uplink and GET for downlink), the proxy traffic perfectly mimics normal web application behavior. This makes the proxy connection much harder for DPI systems to detect and block.
Mockups, screenshots, or examples
As a reference, here is a working example of how the Remnawave panel successfully generates the Xray JSON config for the xhttp transport with separated uplink and downlink methods.
Notice the uplinkHTTPMethod and downloadHTTPMethod keys inside the xhttpSettings.extra object.
"streamSettings": {
"network": "xhttp",
"xhttpSettings": {
"mode": "packet-up",
"host": "your_domain",
"path": "/de-cdn-7h2k9p/segment.ts",
"extra": {
"mode": "packet-up",
"uplinkHTTPMethod": "POST",
"downloadHTTPMethod": "GET",
"uplinkDataPlacement": "body",
"scMaxBufferedPosts": 100,
"scMaxEachPostBytes": 3000000
}
}
}
### Which parts of the panel would this affect?
Backend (API endpoints, login, settings), Frontend (UI / panel pages), Xray config generation
### Are you willing to help?
- [ ] I'd like to implement this feature myself and open a PR.
- [x] I can help test once a PR is open.
### Before submitting
- [x] I searched [existing issues](../issues?q=is%3Aissue) and this feature has not been requested.
- [x] This feature request is written in English.Source: MHSanaei/3x-ui