mobileFX WebKitX CEF3 ActiveX 4.x
WebKitXCEF3Lib ActiveX Control / WebKitXCEF3 Object / OpenRequest Method

The URL to request.

The HTTP method to use, can be POST or GET.

The payload to send to the web services as raw text.

A comma separated HTTP headers list in query string format.

In This Topic
    OpenRequest Method
    In This Topic
    Description

    Performs a controlled HTTP request to a web service, typically used for OAuth requests.

    Syntax
    Visual Basic
    Public Sub OpenRequest( _
       ByVal url As String, _
       ByVal Method As String, _
       ByVal Payload As String, _
       ByVal HeaderMap As String _
    ) 
    Parameters
    url

    The URL to request.

    Method

    The HTTP method to use, can be POST or GET.

    Payload

    The payload to send to the web services as raw text.

    HeaderMap

    A comma separated HTTP headers list in query string format.

    Example
    Private Sub mnuOpenRequest_Click()
        
        On Error Resume Next
        SetBrowserMode
        
        WebKitX1.OpenRequest "https://www.webkitx.com/echo.asp", "POST", "Hello World", "Content-Type:plain/text&Cache-Control:no-store"
        
    End Sub
    See Also