400 bad requesit GET http

I am trying to make a GET request with arduino and esp8266.
this is my code:

GET taub-prayer-ramym/girls HTTP/1.0\r\nHost: taub-prayer-ramym.c9.io\r\nUser-Agent: ESP8266_HTTP_Client\r\nConnection: keep-alive\r\n\r\n
(length = 140)

but I am getting:
+IPD,187:HTTP/1.0 400 Bad request
Cache-Control: no-cache
Connection: close
Content-Type: text/html

400 Bad request

Your browser sent an invalid request. CLOSED

why is that?

why is that?

For the same reason that it failed in your other post, most likely.

You have NOT defined what kind of script girls is.

It does not make a lot of sense to have a folder called taub-prayer-ramym on a server with taub-prayer-ramym in the name.

Assuming that the URL you're trying to access is "http://taub-prayer-ramym.c9.io/girls/" (that was the only combination I could find that didn't return a 404, and instead returns "done"), you need these HTTP headers:

GET /girls HTTP/1.1
Host: taub-prayer-ramym.c9.io
User-Agent: ESP8266_HTTP_Client
Connection: keep-alive

Notice firstly that "taub-prayer-ramym" does not appear in the path, only "/girls", and also note that I have set the HTTP version 1.1 - as the Host header, which is usually very necessary on the modern internet, is not defined by version 1.0 of the HTTP specification and hence many servers that receive a 1.0 request do not honour it, causing problems. If you're interested in the reason why, see this post of mine.