HTTP Client test for AbitUSBModem. see: http://developer.mbed.org/users/phsfan/notebook/abitusbmodem/

Dependencies:   AbitUSBModem USBHost mbed

Embed: (wiki syntax)

« Back to documentation index

TinyHTTP.h File Reference

TinyHTTP.h File Reference

Tiny HTTP Client. More...

Go to the source code of this file.

Functions

int httpRequest (int method, char *host, int port, char *uri, char *head, char *body, onHttpReceiveFunc func)
 send http request

Detailed Description

Tiny HTTP Client.

Definition in file TinyHTTP.h.


Function Documentation

int httpRequest ( int  method,
char *  host,
int  port,
char *  uri,
char *  head,
char *  body,
onHttpReceiveFunc  func 
)

send http request

Parameters:
methodMETHOD_GET or METHOD_POST
hosthttp server
uriURI
headhttp header (CR+LF) (or NULL)
bodyPOST body (or NULL)
Returns:
http code, -1:failue

Definition at line 76 of file TinyHTTP.cpp.