Command video guide
HTTP
HTTP lets a script request information from a website or web service and use the response in later commands. This Overview explains every method and its controls without sending a request. Use the Intro & GET, POST, PUT, PATCH and DELETE tabs for working examples.
Choose GET to read, POST to submit or create, PUT to replace a complete resource, PATCH for a partial update, or DELETE to request removal. The service defines its own API. Use only endpoints and test resources you are authorized to access or change.
URL Source accepts Text or a prior String variable. Optional Headers have a name and a Text/String-variable value. POST, PUT and PATCH can send one raw UTF-8 body; GET and DELETE send no body. Set headers such as Content-Type as required by the service; the method does not format your data automatically.
Timeout is a literal 1000–60000 milliseconds. A blank or invalid visual value remains incomplete; enter a valid value before Play. Use In selects This Script Only or Script Thread for saved outputs.
Save Outputs independently enables Success (Boolean), Status (Integer), Body (String), and Error (String). Status 200–299 counts as success; a network or invalid-request failure has status 0. Response/error text is capped at 256 KB with a truncation note. Body output is available to later commands and Watch but is omitted from normal/verbose logs, generic variable events and finalVariables.
The request can follow up to five redirects. A 303 becomes GET; 301/302 changes POST to GET, while 307/308 preserves method and body. HTTPS-to-HTTP redirects reject, and cross-origin redirects omit configured headers. Check the service documentation before using a request that changes data.
Overview
Step-by-step guide
Step 01 HTTP connects your script to websites and web services. Use it to fetch data or send a request, then use the response in later commands. This overview explains the five methods and their settings without sending a request.
Step 02 Drag HTTP from Network into the script, then open the inserted row. The Method selector chooses what kind of request the command will send.
Step 03 Open Method to see GET, POST, PUT, PATCH, and DELETE. Choose the method required by the website or service you are using.
Step 04 GET reads information. Use it to retrieve something such as public text or data from a service. ScriptTap sends no request body with GET.
Step 05 POST submits information and often creates a new item. It can send a text body containing the data expected by the service. The exact result depends on that service's API.
Step 06 PUT replaces a complete resource. Use it when the service expects the full replacement data, rather than only the fields that changed.
Step 07 PATCH applies a partial update. It is useful when a service lets you change selected parts of an existing item without replacing the whole item.
Step 08 DELETE requests removal of a resource and sends no body. POST, PUT, PATCH, and DELETE can change server data, so use only services and test resources you are authorized to modify.
Step 09 Use In selects the scope for saved output variables: this script only, or this thread when results need to be shared with called scripts. Keep variable declarations and later reads in the matching scope.
Step 10 URL Source can be Text or a String variable. Text lets you enter the address here. String variable uses a value prepared by an earlier command. Use the complete address required by the service, preferably with HTTPS.
Step 11 Turn on Headers and add a row when the service needs extra request information. Enter the header name, then choose Text or a prior String variable for its value. For example, a service may require a Content Type header for JSON. Remove an unused row with its red X.
Step 12 Select POST to see the body controls. POST, PUT, and PATCH can send raw text or a prior String variable as the body. Set any headers required by the service; selecting a method does not automatically format your data as JSON.
Step 13 Timeout limits how long the request may wait. Enter a literal number from one thousand to sixty thousand milliseconds. Ten thousand milliseconds is ten seconds. A blank timeout remains incomplete, so enter a valid value before playing your script.
Step 14 Turn on Save Outputs to choose which results later commands will use. Each result has its own switch and destination, so you can save only what your script needs.
Step 15 Success saves a Boolean result. It is true for an HTTP status from two hundred through two hundred ninety nine. Use it to choose a success or failure branch later in the script.
Step 16 Status saves the numeric HTTP status in an Integer variable. This helps distinguish responses such as success or not found. A network or invalid request failure uses status zero.
Step 17 Body saves response text in a String variable. A later JSON or Text Transform command can extract useful information from it. The response is limited to two hundred fifty six kilobytes, with a note if truncated.
Step 18 Error saves a short error message in a String variable for later handling. Save it when you want your script to explain why a request failed, instead of relying only on a success flag.
Step 19 This overview stops without testing or playing the command. Cancel the draft to return to the editor. Use the separate method guides for working examples with a visible result.
GET retrieves information from a website or web service. Build this three-command example in a new script: HTTP → Display → PromptMe. Every command is dragged from the native palette.
Use GET, URL Source Text, and https://scripttap.com/robots.txt. Enter 10000 ms for Timeout and leave Headers off. Enable Save Outputs and save only Body → s1. The public file needs no account or credentials. This example reads it without changing server data.
Display stays in Once mode, reads Variable s1, and uses a clear screen area with Lifespan 5000 ms. If Android asks, allow screen capture. The visible text is the downloaded response, not a literal entered into Display.
Standard PromptMe uses header Complete, one Done button, and Boolean output b1. The String and Boolean have different purposes: s1 holds downloaded text; b1 records the button selection. Done lets this example finish naturally.
Use the Overview tab for the five methods, variable sources, headers and independent output choices. A real service defines its own API, response format and authorization requirements. JSON or TextTransform can extract useful information for later commands.
Intro & GET
Step-by-step guide
Step 01 GET retrieves information from a website or web service. In this example, HTTP will download a public text file from the ScriptTap website. Display will show the returned text, and Prompt Me will provide a clear completion button.
Step 02 Create a new blank script for this example. This keeps the demonstration separate from your existing scripts.
Step 03 Open the new script's menu and choose Rename. Enter a name for your script, then confirm it.
Step 04 Select the renamed script, then open the editor. We will build this example with three commands.
Step 05 Expand Network and drag HTTP into the script. Open the inserted command to configure the request.
Step 06 Keep Method set to GET. GET reads information and does not send a request body. The HTTP Overview explains the other methods and the shared settings.
Step 07 Leave URL Source on Text and enter this complete HTTPS address. The public robots text file gives us a small, readable response without signing into an account.
Step 08 Enter ten thousand for Timeout. This gives the request up to ten seconds to finish. We do not need any request headers for this public file.
Step 09 Turn on Save Outputs. We only need the response Body for this example, so leave Success, Status, and Error off, and enable Body.
Step 10 Save Body in the String variable s one. Later commands can read this variable. For structured responses, you could use JSON or Text Transform to extract the part your script needs.
Step 11 Next, drag Display after HTTP. This supporting command makes the downloaded text visible, so we can see what GET actually returned.
Step 12 Keep Display in Once mode. Change Source from Text to Variable, then enter s one. This is the same String variable filled by HTTP.
Step 13 Choose an area large enough to read the response. If Android asks, allow screen capture. Move the selection's corners to place the box in a clear part of the home screen, then confirm it.
Step 14 Set Lifespan to five thousand milliseconds. Display will show the text for five seconds, then the script will continue. Save the command.
Step 15 Finally, expand Advanced and drag Prompt Me after Display. It will give us an obvious confirmation that the request and display steps have finished.
Step 16 Keep the Standard prompt style and enter Complete as its header. This title will make the final confirmation easy to recognize.
Step 17 Add one button and label it Done. Selecting this button will close the prompt and let the script finish.
Step 18 Save the button's selection in Boolean b one, then save Prompt Me. This Boolean records the selected button; it is separate from the downloaded String.
Step 19 The script now has three commands. HTTP fetches the text into s one. Display reads s one and shows it for five seconds. Prompt Me waits for the Done button. No extra data-preparation command is needed for this example.
Step 20 When the script is complete, simply use the Play button in the main overlay.
Step 21 Here is the text that GET downloaded into s one. Display shows it for five seconds, then the completion prompt appears.
Step 22 Tap Done to finish the script. GET is useful whenever later commands need information supplied by a website or service. Start with a small public response, then adapt the address and output handling to your own authorized service.
POST submits information to a web service. Start from a new duplicate of the script in Intro & GET; keep the original unchanged. The final example is HTTP → JSON → PromptMe.
Select POST and URL https://httpbingo.org/post. Enable Headers and add Content-Type, Source Text, Value text/plain. Keep Body Source Text and enter ScriptTap. Retain Timeout 10000 ms and save only the response Body → s1.
HTTPBingo is a public request-testing service. It returns a JSON object, not just the submitted text. Remove Display from the new copy; manually drag JSON from Variables and move it between HTTP and PromptMe. Use extract, JSON String s1, Path Source Text, Path $.data, Output Type String, and destination s2. Leave the optional success and error outputs off. See the JSON guide for more about extraction.
Standard PromptMe uses s2 as its header and keeps Done → b1. During the actual run its title becomes ScriptTap: that value was sent, returned and extracted, not entered as a fixed title. Only the neutral returned field is displayed, not the complete echoed response.
Use the Overview for shared settings and all five methods. A real service defines its own URL, authentication, header requirements, body format, response fields and side effects; follow that service’s documentation and use only authorized endpoints.
POST
Step-by-step guide
Step 01 POST sends information to a web service. In this example, we will send the text ScriptTap to a public test service and display the text it returns. The HTTP Overview explains the shared settings.
Step 02 Use the script from Intro and GET as a starting point. Open its menu and choose Duplicate, so the original example stays unchanged.
Step 03 Rename the new copy HTTP POST Demo, then select it and open the editor. All changes in this video belong to this separate copy.
Step 04 We will show the returned text in Prompt Me instead of Display. Remove Display from this copy; the HTTP and Prompt Me commands remain.
Step 05 Open HTTP and change Method to POST. Unlike GET, POST can include a request body. What the server does with that information depends on its API.
Step 06 Replace the URL with this HTTPS address ending in slash post. HTTP Bingo is a public testing service that echoes requests. This example does not create an account or change production data.
Step 07 Turn on Headers and add Content Type. Leave its Source on Text and enter text slash plain as the value. This tells the service that our request body is plain text.
Step 08 Leave Body Source on Text and enter ScriptTap. This is the information POST will send. Keep the ten second timeout and save only the response Body in String s one, as in the GET example.
Step 09 The test service returns a JSON object. Drag JSON between HTTP and Prompt Me so we can extract just the useful text, rather than display the entire response.
Step 10 Keep JSON in extract mode. Set JSON String to s one, which contains the response from HTTP. Leave Path Source on Text.
Step 11 Enter dollar sign dot data as the path. The data field is where this test service returns our submitted text. Keep Output Type on String and save the extracted value in s two.
Step 12 Open Prompt Me and replace its header with s two. Prompt Me reads this String variable and uses its contents as the title. Keep the Done button and Boolean b one, then save.
Step 13 HTTP sends ScriptTap and stores the response in s one. JSON extracts the returned data into s two. Prompt Me displays s two and waits for Done. See the JSON guide for more about extracting structured responses.
Step 14 When the script is complete, simply use the Play button in the main overlay.
Step 15 The prompt now displays ScriptTap. That text was sent by POST, returned by the service, and extracted from the response. It was not entered as a fixed prompt title.
Step 16 Tap Done to finish. Use POST when an authorized service expects submitted information. Follow that service's documentation for its URL, headers, body format, and response fields.
PUT asks a service to replace a resource with the complete representation you send, rather than a partial update. This guide uses a public echo service to demonstrate the request and response; it does not replace a persistent production resource.
Make a new duplicate of POST, rename it HTTP PUT Demo, and keep the original unchanged. POST shows the original setup and manual JSON drag; Intro & GET starts from a new script. The final shape remains HTTP → JSON → PromptMe.
Choose Method PUT, retain This Script Only, and use https://httpbingo.org/put. Keep the Content-Type header, Source Text, and change Value to application/json. Selecting PUT does not automatically turn text into JSON. Keep Body Source Text and enter exactly {"name":"ScriptTap","theme":"light"}, including the braces, double quotation marks, colons and comma. Both fields form the complete test representation.
Retain Timeout 10000 ms and response Body → s1, with Success, Status and Error outputs off. In JSON, retain extract, input s1, Path Source Text, and change Path to $.json.name. The test service places the parsed request object inside its json field. Extract as String → s2; leave optional success/error outputs off. See the JSON guide for extraction details.
Standard PromptMe keeps header s2 and Done → b1. The actual run displays ScriptTap, extracted from the returned response, without displaying the full echoed body. Tap Done for natural completion.
See Overview for every method and shared setting. A real API defines the resource URL, required fields, authorization, replacement semantics and response path. Follow its documentation, test carefully and change only resources you are authorized to modify.
PUT
Step-by-step guide
Step 01 PUT asks a web service to replace a resource with the complete representation you send. This differs from a partial update. We will send a small JSON object to a public test service and display the returned name.
Step 02 Start with a duplicate of the POST example. That guide shows the original setup and the manual JSON drag. Keep the accepted original unchanged.
Step 03 Rename the new copy HTTP PUT Demo, select it, and open the editor. The three supporting commands are already in place.
Step 04 Open HTTP and choose PUT from Method. A real service defines which address identifies the resource and which fields its complete representation must contain.
Step 05 Replace the URL with this HTTPS address ending in slash put. HTTP Bingo only echoes this test request. We are not replacing a saved production resource.
Step 06 Keep the Content Type header, but change its Text value to application slash json. This identifies the body format. Selecting PUT does not convert your text into JSON automatically.
Step 07 Keep Body Source on Text and replace ScriptTap with this complete JSON object. It contains a name of ScriptTap and a theme of light. Include the braces, quotation marks, colon separators, and comma exactly as shown in the written guide.
Step 08 Keep Timeout at ten thousand milliseconds and save only the response Body in s one. This is the returned JSON response, not just the request body we entered. Save HTTP.
Step 09 Open JSON and change Path to dollar sign dot json dot name. This test service places our parsed object inside its json field. Extract the name as a String into s two, keeping s one as the input, then save.
Step 10 Prompt Me still uses s two as its header and keeps the Done button with Boolean b one. It will display the name extracted from the actual response.
Step 11 The script now sends a complete JSON object with PUT, extracts the returned name, and shows it in Prompt Me. A real API may require different fields and authorization. Follow its documentation before replacing any stored resource.
Step 12 When the script is complete, simply use the Play button in the main overlay.
Step 13 The prompt displays ScriptTap, the name returned from our JSON request. The public test service echoes the information; this demonstrates the request and response workflow, not persistent resource replacement.
Step 14 Tap Done to finish. Use PUT for a complete replacement when the service supports it. Test carefully and send requests only to resources you are authorized to change.
PATCH requests a partial change, rather than replacing the full resource. The API defines its supported patch document format and media type; ordinary JSON is not a universal patch format. HTTPBingo is an echo service: this example demonstrates sending and reading a request, not a persistent resource update.
Create a new native duplicate of PUT, rename it HTTP PATCH Demo, and leave the original unchanged. The POST guide shows the original supporting-command setup and manual JSON drag. The final shape remains HTTP → JSON → PromptMe.
Select Method PATCH and URL https://httpbingo.org/patch. Retain This Script Only, the Content-Type header with Source Text and Value application/json, and Body Source Text. Replace the prior complete object with exactly {"theme":"dark"}. This one-field test illustrates sending only the selected change; the echo service does not apply it to a stored object. A real service may require JSON Patch, Merge Patch or another format and corresponding Content-Type.
Retain Timeout 10000 ms, response Body → s1, and the other HTTP outputs off. In JSON, use extract, input s1, Path Source Text, Path $.json.theme, and String → s2, with optional outputs off. The echoed parsed body is inside the service’s json field. See the JSON guide for more about extraction.
Standard PromptMe keeps header s2 and Done → b1. Its actual runtime title becomes dark, extracted from the response rather than entered as a fixed header. Tap Done for natural completion. The full response is not displayed.
See Overview for all methods and shared settings. Follow the real service’s documentation for patch format, authorization and expected results, and modify only resources you are authorized to change.
PATCH
Step-by-step guide
Step 01 PATCH asks a web service to apply a partial change instead of replacing the complete resource. We will send just a theme field and display the returned value. This public echo example demonstrates the workflow, not a saved change.
Step 02 Duplicate the PUT example to keep its original unchanged. The POST guide shows the initial supporting commands and manual JSON drag.
Step 03 Rename the new copy HTTP PATCH Demo, select it, and open the editor. We will reuse HTTP, JSON, and Prompt Me.
Step 04 Open HTTP and select PATCH. The service must support this method. Its documentation defines the patch document format, which is not necessarily the same as an ordinary JSON object.
Step 05 Change the URL to this HTTPS address ending in slash patch. HTTP Bingo accepts the test request and echoes the information. It does not store the resource or apply a persistent update.
Step 06 For this echo example, keep Content Type on Text with application slash json. A real API may require a different media type and patch structure. Selecting PATCH does not convert the body automatically.
Step 07 Keep Body Source on Text. Replace the complete object with this smaller JSON object: a theme field set to dark. We omit the name field here to illustrate sending only the selected change. Use the exact punctuation in the written guide.
Step 08 Retain the ten thousand millisecond Timeout and response Body output s one. Success, Status, and Error outputs remain off. Save HTTP.
Step 09 Open JSON and change Path to dollar sign dot json dot theme. The test service places the parsed body in its json field. Keep input s one, extract a String into s two, and save.
Step 10 Prompt Me still uses s two as its header, with Done assigned to Boolean b one. It will show the extracted theme from the actual response, not a fixed title entered by us.
Step 11 HTTP sends the PATCH request, JSON extracts its returned theme, and Prompt Me displays it. Before using a real service, check its supported patch format, required authorization, and the resource you intend to change.
Step 12 When the script is complete, simply use the Play button in the main overlay.
Step 13 The prompt displays dark, the theme returned by our PATCH test. This confirms that the body was sent, returned, and extracted. The echo service has not changed a stored resource.
Step 14 Tap Done to finish. Choose PATCH for partial changes when the service supports them, use its required patch format, and modify only resources you are authorized to change.
DELETE asks a service to remove the resource identified by its address. A real request can be destructive. This guide uses a public echo service to test request and response handling without deleting a saved resource.
Create a new native duplicate of PATCH, rename it HTTP DELETE Demo, and leave the original unchanged. The POST guide shows the original supporting commands and manual JSON drag. The final shape remains HTTP → JSON → PromptMe.
Select Method DELETE. ScriptTap removes the outgoing request Body controls; saving the response Body is separate and remains available. Turn Headers off for this test: its previous Content-Type described a JSON request body we no longer send. Real services may require authorization or other headers.
Set URL Source Text and URL https://httpbingo.org/delete?name=ScriptTap. The query value is a neutral label returned by this echo service, not the identity of a stored item to remove. Retain This Script Only, Timeout 10000 ms, and response Body → s1; leave other HTTP outputs off.
In JSON, use extract, input s1, Path Source Text, Path $.args.name[0], and String → s2, with optional outputs off. The path reads the first name query value; [0] selects the first array item. This response structure is specific to HTTPBingo, not a general DELETE response format. See the JSON guide for extraction details.
Standard PromptMe keeps header s2 and Done → b1. Its actual runtime title becomes ScriptTap, extracted from the response rather than typed as a fixed title. Tap Done for natural completion. The full response is not displayed.
A real DELETE response may have no body. Use the service’s documented Success or Status result instead of assuming JSON is returned, and verify the outcome before treating a resource as deleted. Only send removal requests where intended and authorized. See Overview for all methods and shared settings.
DELETE
Step-by-step guide
Step 01 DELETE asks a web service to remove the resource identified by its address. A real request can be destructive, so we will use a public echo service. This example tests the request and response without deleting a saved resource.
Step 02 Duplicate the PATCH example and keep the accepted original unchanged. The POST guide shows the initial supporting commands and manual JSON drag.
Step 03 Rename the new copy HTTP DELETE Demo, select it, and open the editor. We will reuse HTTP, JSON, and Prompt Me.
Step 04 Open HTTP and choose DELETE. ScriptTap removes the outgoing Body controls because DELETE sends no request body. This is different from saving the response Body, which is still available.
Step 05 Turn Headers off for this echo example. Its previous Content Type header described a JSON request body, which we are no longer sending. Real services may still require authorization or other headers.
Step 06 Change the address to the URL in the written guide: the delete endpoint, with name set to ScriptTap as a query value. This neutral label lets us recognize the returned result. It does not identify a stored item to delete on this test service.
Step 07 Keep Timeout at ten thousand milliseconds and save the response Body in s one. The test service returns JSON. A real DELETE response may have no body; use its documented Success or Status result instead of assuming JSON is always returned. Save HTTP.
Step 08 Open JSON and enter the path shown here. It reads the first name query value from this test response. Keep input s one, extract a String into s two, leave optional outputs off, and save. This extraction is specific to the echo service.
Step 09 Prompt Me keeps s two as its header and Done assigned to Boolean b one. The title will come from the actual response, not a fixed label we type into the prompt.
Step 10 HTTP sends DELETE to the public test endpoint, JSON extracts the neutral returned name, and Prompt Me displays it. Before using DELETE on a real API, verify the resource address, permissions, and expected effect. ScriptTap will send the request when this command runs.
Step 11 When the script is complete, simply use the Play button in the main overlay.
Step 12 The prompt shows ScriptTap, returned from our DELETE test and extracted into s two. The echo service confirms the request information; it does not prove that a persistent resource was removed.
Step 13 Tap Done to finish. Use DELETE only where removal is intended and authorized. For a real service, check its documented success status and verify the outcome before treating the resource as deleted.