Axis APPINT 통합 매뉴얼 - 페이지 5
{카테고리_이름} Axis APPINT에 대한 통합 매뉴얼을 온라인으로 검색하거나 PDF를 다운로드하세요. Axis APPINT 10 페이지. Application integration
Your AXIS 700 will now respond by sending you a
data.
Scanning Using MFC
Microsoft Foundation Classes (MFC) offers good support for Internet connections,
especially when it comes to HTTP and FTP. As described above, scanning is performed by
requesting a
using HTTP. If the operation is successful, the image is returned via a
redirect response. The steps below describe how a scanning is performed using MFC. If you
need more information about the classes described, see the MFC documentation. The
following code is not checked for errors.
1. Create a CInternetSession object:
CInternetSession aSession("ScanSDK");
The parameter is a string identifying the application. An application needs only
one instance of this class.
2. Using this object you can now retrieve an HTTP connection:
CHttpConnection* anHttpConnection =
3. Using this connection, you can now open a request. By default, redirect responses
are handled automatically:
CHttpFile* anHttpFile =
The first parameter defines that a POST request shall be opened, the second is the
request target.
4. Create a query string containing the parameters you want to send:
CString aQueryString =
5. Add an HTTP header which informs the HTTP server that the request contains
encoded data:
anHttpFile->AddRequestHeaders(
aSession.GetHttpConnection("somescanserver",
anHttpConnection->OpenRequest(0,
"\n\npage=scan&profileName=Color+low&scanNow=";
"Content-type: application/x-www-form-urlencoded");
(INTERNET_PORT) 80,
NULL,
NULL);
"/user/scan/scan.shtml");
5
response and image