HttpRequest_v4 Op

HttpRequest

Request a json file and output an object (ajax, url, json,fetch)


Full Name
  • Ops.Json.HttpRequest_v4
Visibility
  • Core Op - visible for everyone
License
  • MIT
AuthorgithubMaintained by Team


Example Patch LoadingStatus HttpRequest Example

Makes a request to the MetaWeather API and displays the current temperature. We use a CORS-proxy here to overcome security-problems between HTTP and HTTPS.

To change the city run this in your browser: https://www.metaweather.com/api/location/search/?query=berlin, change the last part (city) and copy the woeid from the response to `Location ID.

Open In Editor

INPUT PORTS


Request

URL (String)
HTTP Method index (Number: integer)

the http method to use

Request Body (String)
Content-Type (String)

the content type of the body sent (if any)

Send Credentials (Number: boolean)

indicates whether or not cross-site Access-Control requests should be made using credentials such as cookies, authorization headers or TLS client certificates.

headers (Object)

a key/value-object of additional headers to send

Response

Response Content index (Number: integer) JSON  String  Binary Base64 
Auto request (Number: boolean)

trigger the request on any value change (or on pagereload)

Empty output on change (Number: boolean)
Retry on error (Number: boolean)
Reload (Trigger)

OUTPUT PORTS


Response Json Object (Object)
Response String (String)
Response Data Url (String)
Status Code (Number)
Is Loading (booleanNumber)

currently loading

Has Error (booleanNumber)
Error (String)
Duration MS (Number)
Fetch Response (Object)
Loaded (Trigger)

triggers when finished


Changelog

Patches using HttpRequest_v4

  • Examples
  • Public
  • My Patches