MISendRequest() function - MapBasic - 2023

MapInfo MapBasic Reference

Product type
Software
Portfolio
Locate
Product family
MapInfo
Product
MapInfo > MapBasic
Version
2023
ft:locale
en-US
Product name
MapBasic
ft:title
MapInfo MapBasic Reference
First publish date
1985
ft:lastEdition
2023-09-12
ft:lastPublication
2023-09-12T16:32:32.686000

Purpose

Sends a request to an HTTP server.

Syntax

MISendRequest( ByVal hFile As CHttpFile, ByVal strHeaders As String, 
	ByVal dwHeadersLen As Integer, ByVal strOptional As String, 
	ByVal dwOptionalLen As Integer, ByVal bAuthenticate As SmallInt
	As SmallInt

hFile is a CHttpFile handle.

strHeaders is a string containing the name of the headers to send.

dwHeadersLen is the length of the headers identified by strHeaders.

strOptional is any optional data to send immediately after the request headers. This is generally used for POST and PUT operations. This can be empty if there is no optional data to send.

dwOptionalLen is the length of strOptional.

bAuthenticate indicates whether to check authentication or not.

Return Value

Nonzero if successful; otherwise 0. To determine the cause of the failure, call the MIGetErrorMessage() function.

Description

This function sends a request to an HTTP server.