Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.5b

Application v 5.24b

  

 

Chapter Twenty-oneEDGARView Integration (continued)

EDGARSessionGetHTTPHandle Function

Overview

The EDGARSessionGetHTTPHandle function returns a handle to the HTTP connection to the current EDGAR session.

Syntax/Parameters

Syntax

hHTTP = EDGARSessionGetHTTPHandle ( handle hSession );

Parameters

hSession

A handle to an open EDGAR session.

Return Value

Returns a handle to the HTTP Object associated with the EDGAR session or a NULL_HANDLE on failure. Use the GetLastError function to retrieve a formatted error code.

Remarks

During the creation of a session, an HTTP connection is opened and managed by the EDGAR session manager. The handle can be retrieved and used to access the system.

HTTP requests must match the unpublished requirements of the EDGAR System. To scrape web pages and access data, the login CIK, session ID and page name must be supplied in each query. In addition, certain cookies are required which are managed by the session manager. As such, the handle to HTTP session supplied this function must be used when making HTTP request.

While the handle should be closed using the CloseHandle function, it only releases the handle, it does not close the HTTP session.

Related Functions

Platform Support

Go13, Go16, GoFiler Complete, GoFiler Corporate, GoFiler, GoFiler Lite, GoXBRL

Legato IDE