HP LoadRunner Protocol SDK
Events HTTP

HTTP Events

HTTP Socket Events

The protocol ID for these events is HTTP.

void wplus_http_wsock_request(

    [in] int session_id,

    [in] int http_id,

    [in] LIPADDRESS ipaddress,

    [in] unsigned short portnum,

    [in] LPSTR urladdress,

    [in,out,

        size_is(hdr_buflen), size_parameter_is_pointer(1),

        size_parameter_offset(1)]

        BYTE **hdr_buffer,

    [in,out] long *hdr_buflen,

    [in,out,

        size_is(body_buflen), size_parameter_is_pointer(1),

        size_parameter_offset(1)]

        BYTE **body_buffer,

    [in,out] long *body_buflen,

    [in,out,

        size_is(body_filelen), size_parameter_is_pointer(1),

        size_parameter_offset(1)]

        BYTE **body_filename,

    [in,out] long *body_filelen,

    [in,out] long *flags

);

void wplus_http_wsock_request_ex(

    [in] int session_id,

    [in] int http_id,

    [in] LIPADDRESS ipaddress,

    [in] unsigned short portnum,

    [in] LPSTR urladdress,

    [in,out,

        size_is(hdr_buflen), size_parameter_is_pointer(1),

        size_parameter_offset(1)]

        BYTE **hdr_buffer,

    [in,out] long *hdr_buflen,

    [in,out,

        size_is(body_buflen), size_parameter_is_pointer(1),

        size_parameter_offset(1)]

        BYTE **body_buffer,

    [in,out] long *body_buflen,

    [in,out,

        size_is(body_filelen), size_parameter_is_pointer(1),

        size_parameter_offset(1)]

        BYTE **body_filename,

    [in,out] long *body_filelen,

    [in,out] long *flags,

    [in] LIPADDRESS sourceipaddress,

    [in] unsigned short sourceportnum

);

HTTP WinINet Events

The protocol ID for these events is HTTP.

void wplus_http_winet_option(

    [in] LPCSTR optionname,

    [in] LPCSTR optionvalue

);

DWORD wplus_http_winet_request(

    [in] int winet_id,

    [in] LPSTR urladdress,

    [in,out,

        size_is(hdr_buflen), size_parameter_is_pointer(1),

        size_parameter_offset(1)]

        BYTE **hdr_buffer,

    [in,out] long *hdr_buflen,

    [in,out,

        size_is(body_buflen), size_parameter_is_pointer(1),

        size_parameter_offset(1)]

        BYTE **body_buffer,

    [in,out] long*body_buflen,

    [in,out,

        size_is(body_filelen), size_parameter_is_pointer(1),

        size_parameter_offset(1)]

        BYTE **body_filename,

    [in,out] long *body_filelen,

    [in] long flags

);

DWORD wplus_http_authorization(

    [in] int session_id,

    [in] LPSTR username,

    [in] LPSTR password,

    [in] LPSTR domain,

    [in] LPSTR client_or_proxy,

    [in] int failed,

    [in] LPSTR authentication_protocol,

    [in] LPSTR request_URL

);