From WikiChip
Editing mirc/identifiers/$urlget
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
This page supports semantic in-text annotations (e.g. "[[Is specified as::World Heritage Site]]") to build structured and queryable content provided by Semantic MediaWiki. For a comprehensive description on how to use annotations or the #ask parser function, please have a look at the getting started, in-text annotation, or inline queries help pages.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
− | {{mirc title|$urlget identifier}}'''$urlget''' sends a | + | {{mirc title|$urlget identifier}}'''$urlget''' sends a GET/POST to an http server. |
== Synopsis == | == Synopsis == | ||
− | < | + | <pre>$urlget()</pre> |
− | $urlget( | ||
− | |||
− | |||
− | </ | ||
== Parameters == | == Parameters == | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
== Properties == | == Properties == | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
== Example == | == Example == | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
<source lang="mIRC">; > POST / HTTP/1.1 | <source lang="mIRC">; > POST / HTTP/1.1 | ||
; > Accept: */* | ; > Accept: */* | ||
Line 78: | Line 22: | ||
; < Connection: close | ; < Connection: close | ||
; < Content-Length: 5 | ; < Content-Length: 5 | ||
− | ; < hello | + | ; < |
+ | ; hello | ||
; url http://localhost/ | ; url http://localhost/ | ||
; redirect http://localhost/ | ; redirect http://localhost/ | ||
Line 91: | Line 36: | ||
; rcvd 5 | ; rcvd 5 | ||
; time 125 | ; time 125 | ||
− | ; reply HTTP/1.1 200 | + | ; reply HTTP/1.1 200 OK |
+ | ; Connection: close | ||
+ | ; Content-Length: 5 | ||
+ | ; | ||
+ | ; | ||
; response hello | ; response hello | ||
Line 181: | Line 130: | ||
sockwrite -n %sockname Content-Length: $len(%data) | sockwrite -n %sockname Content-Length: $len(%data) | ||
sockwrite -n %sockname $+($crlf,%data) | sockwrite -n %sockname $+($crlf,%data) | ||
− | } | + | }</source> |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | </source> | ||
== Compatibility == | == Compatibility == |