SimpleSocket 1.0 examples
Dependencies: EthernetNetIf SimpleSocket 1.0 mbed
Diff: Example/httpclient.cpp
- Revision:
- 24:9c7a2e830ef6
- Parent:
- 15:ae9aff693b07
--- a/Example/httpclient.cpp Fri Sep 09 10:35:56 2011 +0000 +++ b/Example/httpclient.cpp Fri Sep 09 10:54:34 2011 +0000 @@ -12,7 +12,7 @@ ClientSocket socket(host, port); if (socket.connected()) { - socket.writef("GET %s HTTP/1.0\r\n\r\n", path); + socket.printf("GET %s HTTP/1.0\r\n\r\n", path); while (socket.connected()) { if (socket.available()) {