Processing HTTP lwip

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Processing HTTP lwip

580 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Dfcbkbq on Fri Sep 28 02:32:48 MST 2012
Hello!
I am trying to start using lwip in my project. And can't understand is there way to get HTTP-requests and manually process them? Does there any functions that can manually create http respond?

Regards, Vasilij.
Labels (1)
0 Kudos
1 Reply

559 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by wellsk on Fri Sep 28 08:21:00 MST 2012
Handling HTTP requests isn't really part of the LWIP core code. You'll need to write an application that binds the port (80) to a listener app and handle the requests there.

The LWIP contrib examples have a sample HTTP application that renders a simple web page and shows how to handle the HTTP requests and responses. Maybe this is will work. The contrib tree can be download from LWIP's Savannah site, but it's also replictaed in the lwip_lpc port.

http://sw.lpcware.com/?p=lwip_lpc.git&a=tree&h=3ddfab645e2f4fecd094327fcc41e9839f631837&hb=cd5a244b7...
0 Kudos