Forum Discussion
Simon_Blakely
Jul 29, 2018Employee
You should not have a \r\n before the HTTP/1.1:
set send_data \"GET /$api_url HTTP/1.1\r\nHost: $api_host\r\n\r\n\"
That is the difference between
GET $api_url
HTTP/1.1
Host: $api_host
and
GET $api_url HTTP/1.1
Host: $api_host