HttpRequest.create Method

Parent Object: HttpRequest
Defined in namespace "adsk::core" and the header file is <Core/Application/HttpRequest.h>

Description

Creates a new HttpRequest object.

Syntax

This is a static method.

# Uses no optional arguments.
returnValue = adsk.core.HttpRequest.create(url)

# Uses optional arguments.
returnValue = adsk.core.HttpRequest.create(url, method)
This is a static method.

#include <Core/Application/HttpRequest.h>

// Uses no optional arguments.
returnValue = adsk::core::HttpRequest::create(url);

// Uses optional arguments.
returnValue = adsk::core::HttpRequest::create(url, method);

Return Value

Type Description
HttpRequest Returns the new HttpRequest object.

Parameters

Name Type Description
url string The URL to make the request to.
method HttpMethods The method to use for the request. The default is GetMethod.

This is an optional argument whose default value is HttpMethods.GetMethod.

Version

Introduced in version January 2024