Chat freely about anything...

User avatar
By martinayotte
#31461 BTW, I don't see in what the link you've provided could help ...

For the generic definition of HTTP Response, here is something that can help : http://www.tcpipguide.com/free/t_HTTPRe ... Format.htm

So, maybe some starting point would be :

Code: Select allHTTP/1.1 200 OK\r\nConnection: close\r\nContent-Type: text/xml\r\nContent-Length: 24\r\n\r\n<root>\r\nHello\r\n</root>\r\n


There is some kind of a problem, in which no one showed me yet that its working


The problem is that it difficult to ask people to do your own homework, even if you say "i will pay you money", because it also require specs of what you need to have in the response.
As I said in the other thread, why you wish to keep the AT shell functionality if it soo simple to use ESP somehow else ?
User avatar
By kenn
#31464 rant:
- what ESP board?
- what version of AT firmware are you using?
- you're sending login and password?
- what do you want the server to send back?

I have a python script I use for testing the AT firmware. No guarantees, but if I get some time this weekend I will try your example
User avatar
By smorg
#31485 As I wrote here: viewtopic.php?f=6&t=6015&p=31475#p31475

And if you try to send a newline combination "\r\n" will probably not be converted. I do not think "\" works as an escape sequence in CIPSEND, it is just sent as it is.


When you type "\r\n" in your terminal, it sends four characters: "\", "r", "\" and "\n". You WANT to send just two characters for CR/LF. The "\" sequence only works if you send it from another computer via python or C, which converts this string to two bytes.
Try a send from python or explicitly send Ctrl-M and Ctrl-J (the key combinations, DO NOT type "C" "t" "r" "l" etc.!).
And change your command "AT+CIPSEND=0,47" to "AT+CIPSEND=0,43", or whatever string you send, plus 4 for the two line endings.
Maybe even better use two commands, one for each line+ending.

If it still does not work use a PC instead of a mobile device and spy on the actual network traffic with an analyzer, like WireShark.
Last edited by smorg on Fri Oct 16, 2015 1:13 am, edited 1 time in total.