ESP8266 AT Mode GET Request - No Body

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
Post Reply
User avatar
devnull
Posts: 219
Joined: Sat Jan 07, 2017 1:52 am
Location: Singapore / Cornwall
Contact:

ESP8266 AT Mode GET Request - No Body

Post by devnull » Tue Jun 05, 2018 10:42 am

Not sure if any of you are familiar with the esp8266 using it's AT Command firmware ?

I have successfully connected and sent the request to the webserver which responded correctly, however it only appeared to respond to CIPSEND with the header and did not send the body at all.

Code: Select all

TX: b'AT+CIPSEND=50\r\n'
RX: b'AT+CIPSEND=50\r\r\n'
RX: b'\r\n'
RX: b'OK\r\n'
RX: b'> '
RX: b'>GET /text.html HTTP/1.1\r\nHost: iot.somesite.net\r\n\r\n'
RX: b'\r\n'
RX: b'Recv 50 bytes\r\n'
RX: b'\r\n'
RX: b'SEND OK\r\n'
RX: b'\r\n'
RX: b'+IPD,348:HTTP/1.1 200 OK\r\n'
RX: b'Server: n'
I realise this is not much to go on, but someone else may have been through this before me and can stop me re-inventing the wheel :-)

User avatar
devnull
Posts: 219
Joined: Sat Jan 07, 2017 1:52 am
Location: Singapore / Cornwall
Contact:

Re: ESP8266 AT Mode GET Request - No Body

Post by devnull » Tue Jun 05, 2018 11:42 pm

OK, solved, it was due to the small buffer size (64 bytes) on pyboard.

Post Reply