INetHttpService

Assembly: Net;

Description

The INetHttpService interface contains properties and methods that are used to work with network resources via HTTP/HTTPS protocol.

Inheritance Hierarchy

          INetService

          INetHttpService

Comments

The interface can be used to connect and work with various web servers and services via HTTP/HTTPS protocol using SOAP requests. To create a connection to network resources, follow the steps:

Specify GET requests in resource URL that is set in the INetHttpService.Url property.

When executing a POST request, specify necessary data/request to be sent in the body of POST request in the INetCommand.Start parameter. Requests are specified in the SOAP format by default. If JSON requests are assumed to be executed, add the Content-Type: application/json;charset=utf-8 header to the INetHttpCommand.Headers collection and set the INetHttpCommand.OuterBody property to True.

If services are available via the HTTPS protocol, use security certificate in the PEM format:

Properties

  Property name Brief description
Url The Url property determines URL of network resource.

Methods inherited from INetService

  Method name Brief description
Connect The Connect method connects to the network resource and returns context to communicate with it.

See also:

Net Assembly Interfaces