= HTTPClient = Some simple demo how to use the HTTPClient. == Library == Import Library: {{{ http://mbed.org/projects/cookbook/svn/EMAC/lwip/trunk }}} Import precompiled Library: {{{ http://mbed.org/projects/cookbook/svn/EMAC/lwip/precomp }}} * For details on how to use this in the compiler, see [//handbook/Importing Importing Projects and Libraries in to the Compiler] == HTTP Client Demos == Simple fetching a textfile. || [[Include(source:/HTTPClient/examples/mbed-get/main.cpp)]] || || ''Source Code of mbed-get.bin ([source:/HTTPClient/examples/mbed-get_LPC1768.bin LPC1768] [source:/HTTPClient/examples/mbed-get_LPC2368.bin LPC2368]). || Same for a Google search for "HelloWorld": || [[Include(source:/HTTPClient/examples/google-string/main.cpp)]] || || ''Source Code of google-string.bin ([source:/HTTPClient/examples/google-string_LPC1768.bin LPC1768] [source:/HTTPClient/examples/google-string_LPC2368.bin LPC2368]). || == Writing into files == The same HelloWorld search redirected into a file on the local disk: || [[Include(source:/HTTPClient/examples/google-file/main.cpp)]] || || ''Source Code of google-file.bin ([source:/HTTPClient/examples/google-file_LPC1768.bin LPC1768] [source:/HTTPClient/examples/google-file_LPC2368.bin LPC2368]). || == Post nothing == The first demo with a post request: || [[Include(source:/HTTPClient/examples/mbed-post/main.cpp)]] || || ''Source Code of mbed-post.bin ([source:/HTTPClient/examples/mbed-post_LPC1768.bin LPC1768] [source:/HTTPClient/examples/mbed-post_LPC1768.bin LPC1768]). || == API == [[Include(//projects/cookbook/api/EMAC/lwip/trunk/HTTPClient/HTTPClient)]] * Full api at http://mbed.org/projects/cookbook/api/EMAC/lwip/trunk/HTTPClient * Full source at http://mbed.org/projects/cookbook/svn/EMAC/lwip/trunk/ == Resources == * [api:HTTPClient/trunk API] - Have a look at the API for more demos * [wiki:EMAC/HTTPClient Twitter] - or at the twitter example for a more complex example. * [wiki:timetric Timetric] - or at the timetric example for a more complex example. * [wiki:EMAC HTTP Server] ----- == Development Log ==