This page is part of a static HTML representation of the TiddlyWiki at https://tiddlywiki.com/

WidgetMessage: tm-http-request Examples

1st September 2024 at 2:20pm

Simple tm-http-request GET

Use the oncompletion attribute to store the results of a method="GET" request

titleOutput

Simple tm-http-request POST

Use the oncompletion attribute to store the results of a method="POST" request. Use the body attribute to send data

titleOutput

tm-http-request with delayed response

Use the bind-status and bind-progress attributes to watch the intermediate state of a slow response

titleOutput

status
progress %

tm-http-request with dripped response

Use the bind-status and bind-progress attributes to watch progress of data which arrives a little at a time

titleOutput

status
progress %

tm-http-request 504 Bad Gateway error response

Send a request to a url which simulates a 504 HTTP response in order to illustrate what an error response looks like

titleOutput

tm-http-request 405 Method Not Allowed error response

Another error response example. This one sends a GET to a URL which only allows POST

titleOutput