#include #include "http.h" int main(int argc, char **argv) { char buf[128]; while (gets(buf)) { HTTP_Response hResponse; char url[256]; /* Must set this URL to use IP address of machine running scan.php */ sprintf(url, "http://192.168.0.100/scan.php?upc=%s", buf); hResponse = http_request(url, NULL, kHMethodGet, HFLAG_NONE ); printf("Server replies %d\n", hResponse.iError ); if (hResponse.pError) printf("%s\n", hResponse.pError ); if (hResponse.pData) free(hResponse.pData); } return 0; }