-->
Page 2 of 2

Re: AT+CIPSTART TCP can't connect

PostPosted: Mon Dec 15, 2014 2:27 pm
by thedwarfer19
Hi,


I have no problem connecting to a website

but I get wrong syntax error when I send get request data

i send AT+CIPSEND=22

I wait for the >

then I send

GET / HTTP/1.0\r\n\r\n

and I get a "WRONG SYNTAX ERROR SEND OK" message and the website returns a bad request page.

Driving me nuts



similar thing when connected to an ftp, any command i send the 8266 gives me the syntax error

any suggestions would be greatly appreciated

Re: AT+CIPSTART TCP can't connect

PostPosted: Wed Dec 24, 2014 12:19 am
by Athena
Try this :
GET / HTTP/1.1
User-Agent: curl/7.37.0
Host: cn.bing.com
Accept: */*

Host needs to be your actual server. And this packet ends with a new line..
Espressif official BBS http://bbs.espressif.com/

Re: AT+CIPSTART TCP can't connect

PostPosted: Sat Apr 22, 2017 9:10 pm
by aruna
When I tried to establish tcp connection to my website hosted by www.000webhost.com, at first I get
"OK Linked"
later in few seconds i get
"OK Unlink". Please help me resolve this issue! Thanks!

AT+CIPSTART=0,"TCP","racial-architecture.000webhostapp.com",80

OK
Linked

OK
Unlink