Post topics, source code that relate to the Arduino Platform

User avatar
By Rod
#25974 hi could you please tell me what I'm doing wrong here. been fighting with this 505 error for days now


AT+CIPSTART="TCP","www.timeapi.org",80
AT+CIPSEND=53
GET /utc/now?format=%25s HTTP/1.1\r\n
Host: http://www.timeapi.org\r\n\r\n

here is the response\\


AT+CIPSTART="TCP","www.timeapi.org",80
CONNECT

OK
AT+CIPSEND=42
> GET /utc/now?format=%25s HTTP/1.1\r\nHost: timeapi.org\r\n\r\nbusy s...

SEND OK

+IPD,134:HTTP/1.1 505 HTTP Version Not Supported
Connection: close
Server: Cowboy
Date: Fri, 14 Aug 2015 16:39:09 GMT
Content-Length: 0


OK
CLOSED

thanks a lot

Rod
User avatar
By Rod
#26017 thanks lethe

thats just one of the ways I have tried.. grabbing at straws now

this is the right way now with same results

AT+CIPSTART="TCP","www.timeapi.org",80
AT+CIPSEND=42
GET /utc/now?format=%25s HTTP/1.1\r\n
Host: timeapi.org\r\n\r\n


executed and response

AT+CIPSTART="TCP","www.timeapi.org",80
CONNECT

OK
AT+CIPSEND=42
> GET /utc/now?format=%25s HTTP/1.1\r\nHost: timeapi.org\r\n\r\nbusy s...

SEND OK

+IPD,134:HTTP/1.1 505 HTTP Version Not Supported
Connection: close
Server: Cowboy
Date: Fri, 14 Aug 2015 22:11:09 GMT
Content-Length: 0


OK
CLOSED

OK


thanks again
Rod
User avatar
By lethe
#26027 Just to be sure: when you write \r\n, are you just typing '\r\n' or is your terminal actually sending the CR and LF characters?
I never used the AT firmware, but I don't think it will do any translation for you.