LInetHttp::OpenRequest

#include "ltwrappr.h"

L_INT LInetHttp::OpenRequest(uType, pszTarget, dwFlags = 0, pszReferer = NULL, pszVersion = NULL)

L_UINT uType;

/* type of request */

L_TCHAR L_FAR *pszTarget;

/* the target of the request */

L_UINT dwFlags;

/* request flags */

L_TCHAR L_FAR *pszReferer;

/* address of URL that initiated the request */

L_TCHAR L_FAR *pszVersion;

/* HTTP version */

Creates a new HTTP request to be sent to the server.

Parameter

Description

uType

Specifies the type of request. Possible values are:

 

Value

Meaning

 

HTTP_GET

Send an HTTP-GET Request

 

HTTP_POST

Send an HTTP-PUT Request

pszTarget

Character string that contains the name of the file, executable module or search specifier to get or post.

pszReferer

Character string that contains the name of the document on which the link is found.

pszVersion

Character string that contains the HTTP version. If this parameter is NULL, "HTTP/1.0" is used.

dwFlags

Reserved for future use. Use 0.

Returns

SUCCESS

The function was successful.

< 1

An error occurred. Refer to Return Codes.

Comments

An HTTP request holds a request to be sent to an HTTP server and contains all RFC822/MIME/HTTP headers to be sent as part of the request. LInetHttp::OpenRequest must be called before calling the following functions LInetHttp::SendBitmap, LInetHttp::SendData, LInetHttp::SendForm and LInetHttp::SendRequest.

Required DLLs and Libraries

LTWEB

For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application

See Also

Functions:

LInetHttp::LInetHttp, LInetHttp::Disconnect, LInetHttp::CloseRequest, LInetHttp::SendBitmap, LInetHttp::SendData, LInetHttp::SendForm, LInetHttp::SendRequest, LInetHttp::GetResponse, LInetHttp::GetServerStatus, Class Members

Topics:

HTTP Functions: Open / Close Requests

 

How to Program with the LInetHttp Class

Example

For an example, refer to LInetHttp::LInetHttp.