langs a-z
This commit is contained in:
parent
db842d013d
commit
d066446780
11389 changed files with 98361 additions and 1020 deletions
11
Task/HTTPS/Objeck/https.objeck
Normal file
11
Task/HTTPS/Objeck/https.objeck
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
use HTTP;
|
||||
|
||||
class HttpsTest {
|
||||
function : Main(args : String[]) ~ Nil {
|
||||
client := HttpsClient->New();
|
||||
lines := client->Get("https://sourceforge.net");
|
||||
each(i : lines) {
|
||||
lines->Get(i)->As(String)->PrintLine();
|
||||
};
|
||||
}
|
||||
}
|
||||
3
Task/HTTPS/Pike/https.pike
Normal file
3
Task/HTTPS/Pike/https.pike
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
int main() {
|
||||
write("%s\n", Protocols.HTTP.get_url_data("https://sourceforge.net"));
|
||||
}
|
||||
2
Task/HTTPS/PowerShell/https.psh
Normal file
2
Task/HTTPS/PowerShell/https.psh
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
$wc = New-Object Net.WebClient
|
||||
$wc.DownloadString('https://sourceforge.net')
|
||||
2
Task/HTTPS/REALbasic/https.realbasic
Normal file
2
Task/HTTPS/REALbasic/https.realbasic
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
Dim sock As New HTTPSecureSocket
|
||||
Print(sock.Get("https://sourceforge.net", 10)) //set the timeout period to 10 seconds.
|
||||
3
Task/HTTPS/TUSCRIPT/https.tuscript
Normal file
3
Task/HTTPS/TUSCRIPT/https.tuscript
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
$$ MODE TUSCRIPT
|
||||
SET DATEN = REQUEST ("https://sourceforge.net")
|
||||
*{daten}
|
||||
1
Task/HTTPS/UNIX-Shell/https.sh
Normal file
1
Task/HTTPS/UNIX-Shell/https.sh
Normal file
|
|
@ -0,0 +1 @@
|
|||
curl -k -s -L https://sourceforge.net/
|
||||
17
Task/HTTPS/VBScript/https.vbscript
Normal file
17
Task/HTTPS/VBScript/https.vbscript
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
Option Explicit
|
||||
|
||||
Const sURL="https://sourceforge.net/"
|
||||
|
||||
Dim oHTTP
|
||||
Set oHTTP = CreateObject("Microsoft.XmlHTTP")
|
||||
|
||||
On Error Resume Next
|
||||
oHTTP.Open "GET", sURL, False
|
||||
oHTTP.Send ""
|
||||
If Err.Number = 0 Then
|
||||
WScript.Echo oHTTP.responseText
|
||||
Else
|
||||
Wscript.Echo "error " & Err.Number & ": " & Err.Description
|
||||
End If
|
||||
|
||||
Set oHTTP = Nothing
|
||||
5
Task/HTTPS/Visual-Basic-.NET/https.visual
Normal file
5
Task/HTTPS/Visual-Basic-.NET/https.visual
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
Imports System.Net
|
||||
|
||||
Dim client As WebClient = New WebClient()
|
||||
Dim content As String = client.DownloadString("https://sourceforge.net")
|
||||
Console.WriteLine(content)
|
||||
Loading…
Add table
Add a link
Reference in a new issue