Method | Description | |
---|---|---|
Create ( |
Creates an HttpWebRequest that is hardened against malicious endpoints after ensuring the given Uri is safe to retrieve
|
|
Create ( |
Creates an HttpWebRequest that is hardened against malicious endpoints after ensuring the given Uri is safe to retrieve
|
|
GetUntrustedUrl ( |
||
PostToUntrustedUrl ( |
Method | Description | |
---|---|---|
IsIPv6Loopback ( |
Determines whether an IP address is the IPv6 equivalent of "localhost/127.0.0.1".
|
|
IsUriAllowable ( |
Determines whether a URI is allowed based on scheme and host name. No requireSSL check is done here
|
public static Create ( |
||
uri | Web location to request | |
return |
public static Create ( |
||
uri | Web location to request | |
allowLoopback | bool | True to allow connections to localhost, otherwise false |
readWriteTimeoutMS | int | Read write timeout, in milliseconds |
timeoutMS | int | Connection timeout, in milliseconds |
maximumRedirects | int | Maximum number of allowed redirects |
return |
public static GetUntrustedUrl ( |
||
url | ||
return | string |
public static PostToUntrustedUrl ( |
||
url | ||
data | string | |
return | string |