Post / GET not working
Posted: Sat Jan 02, 2016 1:54 pm
Hi
We are trying to call a web service using GET or POST. It is working only for api.thingspeak.com, and not for my custom service. I tried sending these commands:
AT+CIPSTART="TCP","www.mydomain.com",80
AT+CIPSEND=15
GET /test.php
and I get file not found error. Where as, when I do my domain.com/test.php on the browser, the file does exist and I get a response. What is strange is - if I replace this with api.thingspeak.com and use there GET /update?API_KEY ..etc. that works.
Appreciate your help.
Ben
We are trying to call a web service using GET or POST. It is working only for api.thingspeak.com, and not for my custom service. I tried sending these commands:
AT+CIPSTART="TCP","www.mydomain.com",80
AT+CIPSEND=15
GET /test.php
and I get file not found error. Where as, when I do my domain.com/test.php on the browser, the file does exist and I get a response. What is strange is - if I replace this with api.thingspeak.com and use there GET /update?API_KEY ..etc. that works.
Appreciate your help.
Ben