EasyManua.ls Logo

Axis 700 - Page 7

Axis 700
10 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
7
2. Create an HTTP handle by calling the InternetConnect function with the
necessary parameters:
HINTERNET anHTTPHandle =
InternetConnect(anInetHandle,
"171.16.1.185",
INTERNET_DEFAULT_HTTP_PORT,
"root",
"pass",
INTERNET_SERVICE_HTTP,
0,
0);
3. Use the HTTP handle to open a request. The second parameter indicates that it is
a 4378 request and the third indicates that the target is the ’/user/scan/scan.shtml’
page. By default, redirect responses are handled automatically:
HINTERNET anHttpRequest =
HttpOpenRequest(anHTTPHandle,
"POST",
"/user/scan/scan.shtml",
NULL,
NULL,
NULL,
0,
0);
4. Add an HTTP header which informs the HTTP server that the request contains
encoded data:
char aReqStr[] =
"Content-type: application/x-www-form-urlencoded";
HttpAddRequestHeaders(anHttpRequest,
aReqStr,
strlen(aReqStr),
0)
5. Create a query string containing the parameters you want to send and send the
request:
char aQeryStr[] =
"\n\npage=scan&profileName=Color+low&scanNow=";
HttpSendRequest(anHttpRequest,
0,
0,
aQeryStr,
strlen(aQeryStr))

Other manuals for Axis 700

Related product manuals