varnishcache / varnish-cache

Varnish Cache source code repository
https://www.varnish-cache.org
Other
3.56k stars 365 forks source link

HTTP/0.9 response #4104

Closed 0cool-f closed 1 month ago

0cool-f commented 1 month ago

Expected Behavior

something like

107 59
mhiekrhjbldfjmjdddhjvotqqdvnusxk

Authentication required.

101 32
All commands are in lower-case.

Current Behavior

curl: (1) Received HTTP/0.9 when not allowed

Possible Solution

No response

Steps to Reproduce (for bugs)

curl -X GET http://localhost:6082/status

this works: curl -X GET http://localhost:6082/status --http0.9

Context

This plugin https://wordpress.org/plugins/purge-varnish/ makes the call I need.

I thought you dropped HTTP/0.9 protocol. :man_shrugging:

Varnish Cache version

varnishd (varnish-7.5.0 revision eef25264e5ca5f96a77129308edb83ccf84cb1b1)

Operating system

No response

Source of binary packages used (if any)

No response

dridi commented 1 month ago

This is not HTTP/0.9, we dropped it for good, this is Varnish's CLI:

https://varnish-cache.org/docs/7.5/reference/varnish-cli.html

You can use varnishadm to speak CLI or write your own tool following the protocol specification. You shouldn't be troubleshooting it with curl and I can't assist you with the Wordpress plugin.

The plugin is documented to work with Varnish up to 6.0, but even with 7.5 the CLI should remain compatible.