SecureBlackbox Lite 2020 .NET Edition

Questions / Feedback?

PostWebForm Method

Posts a web form data to the server.

Syntax

public void PostWebForm(string url, string fields, string fileField, string fileName, string contentType);
Public Sub PostWebForm(ByVal Url As String, ByVal Fields As String, ByVal FileField As String, ByVal FileName As String, ByVal ContentType As String)

Remarks

This variant of the POST method provides means to submit a form (as in a web browser) with an optional file attachment. Fields are expected to contain a list of field names and values in "Name=Value" format separated with EOLs. This list can be empty.

If including a file with your request, use the FileField and FileName properties to specify the file field name and the local filename for the uploaded file. Use ContentType to override the default content type chosen by the client, e.g., "application/x-www-form-urlencoded".

Note that any parameters you intend to pass to this method should be properly encoded before this method is called.

Copyright (c) 2022 /n software inc. - All rights reserved.
SecureBlackbox Lite 2020 .NET Edition - Version 20.0 [Build 8166]