Skip to content
This repository was archived by the owner on Feb 11, 2023. It is now read-only.

[SOLVED] OAuthUtility.Post parameter json body #42

@dpmontero

Description

@dpmontero

Hi,
what is the correct way to create a raw body data parameter?
This does not send the parameter correctly:

Dim json As String = Me.TextBox1.Text

Dim result = OAuthUtility.Post("http://192.168.1.35:8000/api/v1/copies/fam",
                                        parameters:=New HttpParameterCollection From {
                                        New HttpRequestBody(json)},
                                        contentLength:=json.Length,
                                        contentType:="application/json",
                                        headers:=New NameValueCollection From {
                                            {"Authorization", String.Format("Token {0}", token)}
                                        })

Like this in postman:
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions