ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Server functions
  3. getRemoteRequestInfo

Function

getRemoteRequestInfo

Returns the state of an HTTP request: the address, progress and size. In the current server version it returns false.

Syntax

table getRemoteRequestInfo(request theRequest)

Arguments

theRequestrequest
The request.

Differences from MTA:SA

  • These MTA:SA arguments are not here: int postDataLength = 0 [, bool includeHeaders = false ]

In MTA:SA

getRemoteRequestInfo(request theRequest, int postDataLength = 0 [, bool includeHeaders = false ])

Returns

An info table or false.

Example

for _, request in ipairs(getRemoteRequests()) do
    local info = getRemoteRequestInfo(request)
    if info then outputServerLog(info.url) end
end

See also