I have a strange issue, when i connect to an internet based domain, i can send the GET command to the server, but if i’m sending the same package to a local server (on a local network), it is not sending the package.
Does the core have any limitation for local networks?
Here is my code (if i replace byte server[] with a public ip on the internet and the Host: with it’s host, it works like a charm, but not this ip based solution on the local network is not working). I have no clue why
Actually it doesn’t matter, because it is not calling the file at all. I added on the server a script that even if the file is being called (regardless of the variables), a file will be updated. But that is not happening at all
What I would try to debug this is to use another computer on the same local network and try to do your GET request with curl -v and see what is happening.
Okay, this is strange, i just installed a MAMP server for my mac, and for this it works properly.
If i try it with another machine (lighttpd) on the same network, it is not working.
I’m not a pro on server settings, but i guess this will be something on the server side.
The only difference is that in the working case both machines are on Wifi, while it is not working with the spark (wifi) and the machine which is on cable to the same router.
Can it be some routing issue between the machine on wifi and cable?
It's probably not a cabling vs wifi routing issue, and more likely a server config issue.
Can you change the "GET" to "POST" in your request? It could be confusing lighttpd. I'm not sure how robust lighttpd is versus Apache in its willingness to accept unusual requests.
If that doesn't work, try doing a plain "GET" request like this. Start with something super simple and go from there.
My guess is something in the headers was choking up lighttpd. It could also be that some delay()s or a client.flush() was needed. As robust as many of them are, web servers can still be cantankerous!