Sync
This commit is contained in:
parent
6f050a029e
commit
776bba907c
3887 changed files with 59894 additions and 7280 deletions
|
|
@ -1 +1,2 @@
|
|||
:: Must have curl.exe
|
||||
curl.exe -k -s -L https://sourceforge.net/
|
||||
|
|
|
|||
6
Task/HTTPS/JavaScript/https.js
Normal file
6
Task/HTTPS/JavaScript/https.js
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
(function(url,callback){//on some browsers you can check certificate information.
|
||||
xhr=new XMLHttpRequest();
|
||||
xhr.open('GET',url,true);
|
||||
xhr.onreadystatechange=function(){if(xhr.readyState==xhr.DONE){callback(xhr)}};
|
||||
xhr.send();
|
||||
})('https://sourceforge.net',function(xhr){console.log(xhr.response)})
|
||||
1
Task/HTTPS/MATLAB/https.m
Normal file
1
Task/HTTPS/MATLAB/https.m
Normal file
|
|
@ -0,0 +1 @@
|
|||
s=urlread('https://sourceforge.net/')
|
||||
17
Task/HTTPS/Nemerle/https.nemerle
Normal file
17
Task/HTTPS/Nemerle/https.nemerle
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
using System;
|
||||
using System.Console;
|
||||
using System.Net;
|
||||
using System.IO;
|
||||
|
||||
module HTTP
|
||||
{
|
||||
Main() : void
|
||||
{
|
||||
def wc = WebClient();
|
||||
def myStream = wc.OpenRead(https://sourceforge.com);
|
||||
def sr = StreamReader(myStream);
|
||||
|
||||
WriteLine(sr.ReadToEnd());
|
||||
myStream.Close()
|
||||
}
|
||||
}
|
||||
7
Task/HTTPS/Scala/https.scala
Normal file
7
Task/HTTPS/Scala/https.scala
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
import scala.io.Source
|
||||
|
||||
object HttpsTest extends App {
|
||||
System.setProperty("http.agent", "*")
|
||||
|
||||
Source.fromURL("https://sourceforge.net").getLines.foreach(println)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue