Bad Request. Connecting to Sites via Curl on Host and System

400 bad request with curl and https url

It seems like you have no post-data with your request. You probably have not set up your curl transfer properly.

You should have at least a Content-Length header with your POST.

Webrick proxy + cURL returns bad request

If you add a trailing slash to the URL you request, does it work then? Ie a command line like this:

curl --proxy localhost:8888 http://www.google.de/ -v

(this is a curl bug reported in bug #1206, and fixed in git and next release...)

Bad Request - This combination of host and port requires TLS. with Spring Boot

I used https:// at the beginning instead of http://, it worked for me.



Related Topics



Leave a reply



Submit