I have arduino mega2560 which is connected to a WiFi network using esp8266. and I have a server running on https://taub-ramym.c9.io (IP 126.128.47.440) which has thees functions (that changes a flag value in my DB...):
when I put thees http calls in a regular internet browser (chrome...), the flag changes succesfully. the same happens when I call for it from an android app.
but when I call for it from the arduino, it returns "OK", but nothing happens to the flag! I uses this code (after connecting to the WiFi):
Why do you want to keep the connection alive? Typically, a client sends a request to a server, the server generates a response, and the connection is closed.
What do the server logs tell you is happening?
What kind of script is taub-ramym.c9.io/girls? Scripts usually have an extension, like php or cgi, so the server knows how to execute them.