-->
Page 1 of 1

How to do http get/post from 8266?

PostPosted: Mon Nov 10, 2014 7:26 am
by lilei105
Hello guys
I just got several ESP8266 modules and played with its SDK for a while. I want to make a internet wifi plug for myself. Basically I need to do an http get to get a switch's status from some webpage on internet, and I want to do this from 8266 itself. I studied the SDK for a while and it seems I'll have to use lwip to do it. It seems the lwip source code with 0.92 SDK is some mock version. I'm very new on C. Couldn't get my code work. Has anyone done this?

Re: How to do http get/post from 8266?

PostPosted: Mon Nov 10, 2014 11:31 pm
by villTech
one simpler way to do it is to compile the AT sample with auto:
-connect to some webserver
AT+CIPSTART
-send data to webserver
AT+CIPSEND

Re: How to do http get/post from 8266?

PostPosted: Tue Nov 11, 2014 6:34 am
by lilei105
Thanks villTech. I got it work this way today. I didn't find the proper GET string previously, so I never succeeded in this way before. Now I can get the specific page I need in html.
However, I still want to study and make use of lwip in later work. Does anyone has some lwip sample code on 8266?

Re: How to do http get/post from 8266?

PostPosted: Sat Jan 17, 2015 8:01 pm
by thorvald
Hi

Have you managed to use the lwip to make a http get/post ?

I have been looking at the ping using lwip buty haven't yet not figured out to get it to work.

Any hints for getting this to work will be appriciated

Thorvald