GET request with curl. No errors, but Content-Length is 0

A simple GET request with curl returns an empty body (Content-Length: 0):

curl -v https://www.flyorientthai.com/booking/en/index.php

      

On the other hand, wget can handle this url simply:

wget https://www.flyorientthai.com/booking/en/index.php

      

What's wrong with curl?

+3


source to share


2 answers


Header required 'Connection: Keep-Alive'

. It added the default request with wget, but not with curl.



0


source


Try "Content-Type: application / x-www-form-urlencodeds"



-2


source







All Articles