이 문서는 https://tiddlywiki.com/languages/ko-KR/에서 티들리위키의 정적 HTML 표현의 일부입니다

WidgetMessage: tm-http-request Examples

2024년 9월 1일 오후 2:20

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