I'm using Arduino Uno and ESP8266 in a project.
I'm using AT Commands to connect to wi-fi and make a request. I'm using the monitor serial to test the code before compile it in arduino.
It is connecting to wi-fi and I can make a request to a server in my network but when i try to make a request to my web-service in cloud it doesn't work well.
The return is an HTML with an 404 page instead of what I am expecting:
Here is my code:
AT+CIPSTART="TCP","ternary.com.br",80 AT+CIPSEND=18 GET /webservice/
Can someone help me telling me what I am doing wrong?
After see the answer of Maximilian Gerhardt, I solved it writing the following sequence in the monitor serialize:
AT+CIPSTART="TCP","ternary.com.br",80 AT+CIPSEND=70 GET /webservice/ HTTP/1.1 Host: ternary.com.br Connection: Close [Just press enter and send a new line]