271 if (downloadStringCompleted !=
null)
284 if (downloadDataCompleted !=
null)
310 if (downloadProgressChanged !=
null)
323 if (uploadStringCompleted !=
null)
336 if (uploadDataCompleted !=
null)
349 if (uploadFileCompleted !=
null)
362 if (uploadValuesCompleted !=
null)
375 if (uploadProgressChanged !=
null)
388 if (openReadCompleted !=
null)
401 if (openWriteCompleted !=
null)
425 global::System.ComponentModel.AsyncOperation
asyncOperation = global::System.ComponentModel.AsyncOperationManager.CreateOperation(
userToken);
484 bool flag =
string.IsNullOrEmpty(
value);
581 public global::System.Collections.Specialized.NameValueCollection
QueryString
812 global::System.Uri uri = this.
GetUri(address);
831 global::System.Uri uri = this.
GetUri(address);
840 global::System.Uri uri = this.
GetUri(address);
852 global::System.Uri uri = this.
GetUri(address);
869 global::System.Uri uri = this.
GetUri(address);
881 global::System.Uri uri = this.
GetUri(address);
890 global::System.Uri uri = this.
GetUri(address);
905 global::System.Uri uri = this.
GetUri(address);
923 global::System.Uri uri = this.
GetUri(address);
932 global::System.Uri uri = this.
GetUri(address);
945 public byte[]
UploadData(
string address,
string method,
byte[] data)
947 global::System.Uri uri = this.
GetUri(address);
952 public byte[]
UploadData(global::System.
Uri address,
string method,
byte[] data)
972 global::System.Uri uri = this.
GetUri(address);
985 if (this.
Headers[
"Content-Type"] !=
null)
992 string text =
"---------------------" + text2;
993 string text3 =
"multipart/form-data; boundary=" +
text;
995 if ((
"--" ==
null ||
"--" !=
null) && (
text ==
null ||
text !=
null) && (
"\r\nContent-Disposition: form-data; name=\"file\"; filename=\"" ==
null ||
"\r\nContent-Disposition: form-data; name=\"file\"; filename=\"" !=
null) && (
text4 ==
null ||
text4 !=
null) && (
"\"\r\nContent-Type: " ==
null ||
"\"\r\nContent-Type: " !=
null) && (
"application/octet-stream" ==
null ||
"application/octet-stream" !=
null) && (
"\r\n\r\n" ==
null ||
"\r\n\r\n" !=
null))
1000 string text5 =
"\r\n--" +
text +
"--\r\n";
1009 global::System.Uri uri = this.
GetUri(address);
1022 public byte[]
UploadFile(
string address,
string method,
string fileName)
1024 global::System.Uri uri = this.
GetUri(address);
1025 return this.
UploadFile(uri, method, fileName);
1029 public byte[]
UploadFile(global::System.
Uri address,
string method,
string fileName)
1079 public byte[]
UploadValues(
string address, global::System.Collections.Specialized.NameValueCollection data)
1081 global::System.Uri uri = this.
GetUri(address);
1087 public byte[]
UploadValues(global::System.
Uri address, global::System.Collections.Specialized.NameValueCollection data)
1094 public byte[]
UploadValues(
string address,
string method, global::System.Collections.Specialized.NameValueCollection data)
1096 global::System.Uri uri = this.
GetUri(address);
1101 public byte[]
UploadValues(global::System.
Uri address,
string method, global::System.Collections.Specialized.NameValueCollection data)
1116 global::System.Uri uri = this.
GetUri(address);
1125 global::System.Uri uri = this.
GetUri(address);
1140 global::System.Uri uri = this.
GetUri(address);
1164 global::System.Uri uri = this.
GetUri(address);
1183 if (request !=
null)
1192 if (headers !=
null && request !=
null)
1194 string text = headers[
"Accept"];
1195 string text2 = this.
_headers[
"Connection"];
1209 bool flag =
string.IsNullOrEmpty(
text);
1210 bool flag2 =
string.IsNullOrEmpty(text2);
1218 private global::System.Uri
GetUri(
string address)
1236 global::System.Uri uri;
1241 private global::System.Uri
GetUri(global::System.
Uri address)
1276 if (writeStream !=
null)
1300 if (writeStream !=
null)
1318 if (readStream !=
null)
1332 if (request !=
null)
1347 private void UploadBitsAsync(
WebRequest request,
Stream readStream,
byte[] buffer,
int chunkSize,
byte[] header,
byte[] footer, global::System.ComponentModel.AsyncOperation asyncOp,
Action<
byte[],
Exception, global::System.ComponentModel.AsyncOperation> completionDelegate)
1355 while (prefix ==
null)
1364 if (request !=
null)
1368 bool flag =
array ==
"charset";
1369 if (encoding !=
null)
1449 throw new global::Cpp2IlInjected.AnalysisFailedException(
"CPP2IL failed to recover any usable IL for this method.");
1477 global::System.Uri uri = this.
GetUri(address);
1507 global::System.Uri uri = this.
GetUri(address);
1541 global::System.Uri uri = this.
GetUri(address);
1570 global::System.Uri uri = this.
GetUri(address);
1600 global::System.Uri uri = this.
GetUri(address);
1633 global::System.Uri uri = this.
GetUri(address);
1666 global::System.Uri uri = this.
GetUri(address);
1669 if (uploadProgressChanged !=
null)
1711 public void UploadValuesAsync(global::System.
Uri address, global::System.Collections.Specialized.NameValueCollection data)
1716 public void UploadValuesAsync(global::System.
Uri address,
string method, global::System.Collections.Specialized.NameValueCollection data)
1738 global::System.Uri uri = this.
GetUri(address);
1741 if (uploadProgressChanged !=
null)
1766 global::System.Uri uri = this.
GetUri(address);
1779 global::System.Uri uri = this.
GetUri(address);
1792 global::System.Uri uri = this.
GetUri(address);
1807 global::System.Uri uri = this.
GetUri(address);
1820 global::System.Uri uri = this.
GetUri(address);
1835 global::System.Uri uri = this.
GetUri(address);
1848 global::System.Uri uri = this.
GetUri(address);
1861 global::System.Uri uri = this.
GetUri(address);
1876 global::System.Uri uri = this.
GetUri(address);
1891 global::System.Uri uri = this.
GetUri(address);
1904 global::System.Uri uri = this.
GetUri(address);
1919 global::System.Uri uri = this.
GetUri(address);
1932 global::System.Uri uri = this.
GetUri(address);
1940 global::System.Uri uri = this.
GetUri(address);
1980 if (asyncOp !=
null)
1982 long bytesSent = progress.BytesSent;
1983 long bytesReceived = progress.BytesReceived;
1984 if (progress.HasUploadPhase)
1989 if (progress.BytesReceived != 0
L)
2001 if (progress.TotalBytesToSend != 0
L)
2014 if (progress.TotalBytesToReceive != 0
L)
2028 while (argument ==
null)
2036 [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
2037 [
Obsolete(
"This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.",
true)]
2054 [
Obsolete(
"This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.",
true)]
2055 [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
2083 [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
2084 [
Obsolete(
"This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.",
true)]
2094 if (
utf ==
null ||
utf !=
null)
2103 if (bigEndianUnicode ==
null || bigEndianUnicode !=
null)
2287 private global::System.ComponentModel.AsyncOperation
_asyncOp;
2430 base.Dispose(num != 0
L);
2448 throw new global::Cpp2IlInjected.AnalysisFailedException(
"CPP2IL failed to recover any usable IL for this method.");
2511 public global::System.ComponentModel.AsyncOperation
asyncOp;
2517 private Exception <exception>5
__2;
2529 private Stream <readStream>5
__5;
2579 public global::System.ComponentModel.AsyncOperation
asyncOp;
2594 private Exception <exception>5
__2;
2597 private Stream <writeStream>5
__3;
2634 global::System.ComponentModel.AsyncOperation
asyncOperation = this.asyncOp;
2644 public global::System.ComponentModel.AsyncOperation asyncOp;
2666 global::System.ComponentModel.AsyncOperation
asyncOperation = this.asyncOp;
2676 public global::System.ComponentModel.AsyncOperation asyncOp;
2695 global::System.ComponentModel.AsyncOperation
asyncOperation = this.asyncOp;
2705 public global::System.ComponentModel.AsyncOperation asyncOp;
2721 global::System.ComponentModel.AsyncOperation
asyncOperation = this.asyncOp;
2731 public global::System.ComponentModel.AsyncOperation asyncOp;
2747 global::System.ComponentModel.AsyncOperation
asyncOperation = this.asyncOp;
2757 public global::System.ComponentModel.AsyncOperation asyncOp;
2818 args.RaiseExceptionIfNecessary();
2831 args.RaiseExceptionIfNecessary();
2844 args.RaiseExceptionIfNecessary();
2857 args.RaiseExceptionIfNecessary();
2870 args.RaiseExceptionIfNecessary();
2894 args.RaiseExceptionIfNecessary();
2907 args.RaiseExceptionIfNecessary();
2920 args.RaiseExceptionIfNecessary();
2964 public static Func<global::System.ComponentModel.AsyncCompletedEventArgs,
object> <>9
__206_1;
3180 public global::System.ComponentModel.AsyncCompletedEventHandler handler;
class f__AnonymousType0<< Count > j__TPar
static Delegate Combine(Delegate a, Delegate b)
static Delegate Remove(Delegate source, Delegate value)
static void SuppressFinalize(object obj)
static CultureInfo InvariantCulture
static void Delete(string path)
static string GetFullPath(string path)
WebClientWriteStream(Stream stream, WebRequest request, WebClient webClient)
override void Dispose(bool disposing)
readonly WebRequest _request
readonly WebClient _webClient
const int DefaultCopyBufferLength
Task< byte[]> UploadFileTaskAsync(global::System.Uri address, string fileName)
WebHeaderCollection _headers
void DownloadFileAsync(global::System.Uri address, string fileName, object userToken)
Task DownloadFileTaskAsync(global::System.Uri address, string fileName)
void< StartAsyncOperation > b__78_9(object arg)
string UploadString(string address, string method, string data)
SendOrPostCallback _openWriteOperationCompleted
byte[] UploadValues(global::System.Uri address, global::System.Collections.Specialized.NameValueCollection data)
void UploadDataAsync(global::System.Uri address, string method, byte[] data, object userToken)
void UploadValuesAsync(global::System.Uri address, string method, global::System.Collections.Specialized.NameValueCollection data)
Stream OpenRead(string address)
byte[] UploadValues(string address, string method, global::System.Collections.Specialized.NameValueCollection data)
static bool ByteArrayHasPrefix(byte[] prefix, byte[] byteArray)
byte[] UploadValues(string address, global::System.Collections.Specialized.NameValueCollection data)
void< UploadStringAsync > b__179_0(byte[] bytesResult, Exception error, global::System.ComponentModel.AsyncOperation uploadAsyncOp)
Task< Stream > OpenWriteTaskAsync(global::System.Uri address, string method)
global::System.Net.Cache.RequestCachePolicy CachePolicy
byte[] UploadBits(WebRequest request, Stream readStream, byte[] buffer, int chunkSize, byte[] header, byte[] footer)
void< StartAsyncOperation > b__78_8(object arg)
Stream OpenWrite(string address)
void DownloadDataAsync(global::System.Uri address, object userToken)
void< StartAsyncOperation > b__78_1(object arg)
SendOrPostCallback _uploadValuesOperationCompleted
SendOrPostCallback _reportUploadProgressChanged
void< StartAsyncOperation > b__78_2(object arg)
Task< string > UploadStringTaskAsync(string address, string data)
void< StartAsyncOperation > b__78_0(object arg)
byte[] UploadData(global::System.Uri address, string method, byte[] data)
void OpenWriteAsync(global::System.Uri address, string method)
byte[] UploadFile(string address, string fileName)
Task< string > UploadStringTaskAsync(global::System.Uri address, string data)
WebHeaderCollection ResponseHeaders
global::System.Uri GetUri(global::System.Uri address)
byte[] DownloadBits(WebRequest request, Stream writeStream)
void DownloadFileAsyncCallback(byte[] returnBytes, Exception exception, object state)
void UploadStringAsync(global::System.Uri address, string data)
void< StartAsyncOperation > b__78_6(object arg)
Task< byte[]> UploadValuesTaskAsync(string address, string method, global::System.Collections.Specialized.NameValueCollection data)
bool< AllowReadStreamBuffering > k__BackingField
bool AllowReadStreamBuffering
string UploadString(global::System.Uri address, string method, string data)
global::System.ComponentModel.AsyncOperation _asyncOp
virtual void OnOpenReadCompleted(OpenReadCompletedEventArgs e)
void< StartAsyncOperation > b__78_10(object arg)
byte[] UploadData(global::System.Uri address, byte[] data)
virtual void OnDownloadFileCompleted(global::System.ComponentModel.AsyncCompletedEventArgs e)
SendOrPostCallback _downloadFileOperationCompleted
Task< byte[]> DownloadDataTaskAsync(global::System.Uri address)
UploadDataCompletedEventHandler UploadDataCompleted
Task< byte[]> UploadValuesTaskAsync(global::System.Uri address, global::System.Collections.Specialized.NameValueCollection data)
void CopyHeadersTo(WebRequest request)
SendOrPostCallback _openReadOperationCompleted
global::System.Collections.Specialized.NameValueCollection _requestParameters
ICredentials _credentials
void< StartAsyncOperation > b__78_4(object arg)
SendOrPostCallback _uploadFileOperationCompleted
static readonly char[] s_parseContentTypeSeparators
SendOrPostCallback _reportDownloadProgressChanged
global::System.ComponentModel.AsyncOperation StartAsyncOperation(object userToken)
bool< AllowWriteStreamBuffering > k__BackingField
static readonly Encoding[] s_knownEncodings
DownloadStringCompletedEventHandler DownloadStringCompleted
virtual WebResponse GetWebResponse(WebRequest request, IAsyncResult result)
OpenReadCompletedEventHandler OpenReadCompleted
SendOrPostCallback _uploadDataOperationCompleted
UploadProgressChangedEventHandler UploadProgressChanged
DownloadProgressChangedEventHandler DownloadProgressChanged
void OpenFileInternal(bool needsHeaderAndBoundary, string fileName, FileStream fs, byte[] buffer, byte[] formHeaderBytes, byte[] boundaryBytes)
static Exception GetExceptionToPropagate(Exception e)
Task< Stream > OpenReadTaskAsync(global::System.Uri address)
Task< byte[]> UploadDataTaskAsync(global::System.Uri address, byte[] data)
virtual WebResponse GetWebResponse(WebRequest request)
Stream OpenWrite(global::System.Uri address, string method)
global::System.Uri GetUri(string address)
static byte[] UrlEncodeBytesToBytesInternal(byte[] bytes, int offset, int count, bool alwaysCreateReturnValue)
virtual void OnDownloadDataCompleted(DownloadDataCompletedEventArgs e)
void UploadFileAsync(global::System.Uri address, string fileName)
global::System.Collections.Specialized.NameValueCollection QueryString
void DownloadStringAsyncCallback(byte[] returnBytes, Exception exception, object state)
byte[] UploadData(string address, string method, byte[] data)
string MapToDefaultMethod(global::System.Uri address)
void DownloadStringAsync(global::System.Uri address, object userToken)
OpenWriteCompletedEventHandler OpenWriteCompleted
byte[] DownloadData(global::System.Uri address)
byte[] UploadDataInternal(global::System.Uri address, string method, byte[] data, [Out] WebRequest request)
Task< byte[]> UploadDataTaskAsync(string address, string method, byte[] data)
const string DefaultUploadFileContentType
Task< Stream > OpenWriteTaskAsync(global::System.Uri address)
virtual void OnUploadStringCompleted(UploadStringCompletedEventArgs e)
virtual void OnOpenWriteCompleted(OpenWriteCompletedEventArgs e)
string GetStringUsingEncoding(WebRequest request, byte[] data)
Task< byte[]> UploadDataTaskAsync(global::System.Uri address, string method, byte[] data)
static string UrlEncode(string str)
UploadFileCompletedEventHandler UploadFileCompleted
byte[] UploadValues(global::System.Uri address, string method, global::System.Collections.Specialized.NameValueCollection data)
Task< byte[]> UploadFileTaskAsync(string address, string method, string fileName)
const string UploadFileContentType
void< StartAsyncOperation > b__78_3(object arg)
void InvokeOperationCompleted(global::System.ComponentModel.AsyncOperation asyncOp, SendOrPostCallback callback, global::System.ComponentModel.AsyncCompletedEventArgs eventArgs)
WebClient.ProgressData _progress
void UploadValuesAsync(global::System.Uri address, string method, global::System.Collections.Specialized.NameValueCollection data, object userToken)
string UploadString(global::System.Uri address, string data)
byte[] DownloadData(string address)
void< StartAsyncOperation > b__78_7(object arg)
void DownloadFile(global::System.Uri address, string fileName)
void UploadFileAsync(global::System.Uri address, string method, string fileName)
void< StartAsyncOperation > b__78_5(object arg)
WriteStreamClosedEventHandler WriteStreamClosed
void UploadDataAsync(global::System.Uri address, byte[] data)
SendOrPostCallback _downloadDataOperationCompleted
virtual WebRequest GetWebRequest(global::System.Uri address)
UploadStringCompletedEventHandler UploadStringCompleted
global::System.ComponentModel.AsyncCompletedEventHandler DownloadFileCompleted
void UploadBitsAsync(WebRequest request, Stream readStream, byte[] buffer, int chunkSize, byte[] header, byte[] footer, global::System.ComponentModel.AsyncOperation asyncOp, Action< byte[], Exception, global::System.ComponentModel.AsyncOperation > completionDelegate)
const int DefaultDownloadBufferLength
virtual void OnWriteStreamClosed(WriteStreamClosedEventArgs e)
SendOrPostCallback _uploadStringOperationCompleted
Task< Stream > OpenReadTaskAsync(string address)
Task< Stream > OpenWriteTaskAsync(string address, string method)
global::System.Uri _baseAddress
virtual void OnUploadFileCompleted(UploadFileCompletedEventArgs e)
Stream OpenWrite(string address, string method)
void UploadFileAsync(global::System.Uri address, string method, string fileName, object userToken)
bool UseDefaultCredentials
static void AbortRequest(WebRequest request)
virtual void OnDownloadStringCompleted(DownloadStringCompletedEventArgs e)
SendOrPostCallback _downloadStringOperationCompleted
byte[] UploadFile(global::System.Uri address, string fileName)
static bool IsSafe(char ch)
void UploadValuesAsync(global::System.Uri address, global::System.Collections.Specialized.NameValueCollection data)
byte[] UploadFile(global::System.Uri address, string method, string fileName)
Task< string > DownloadStringTaskAsync(string address)
virtual void OnUploadValuesCompleted(UploadValuesCompletedEventArgs e)
WebHeaderCollection Headers
string UploadString(string address, string data)
global::System.Net.Cache.RequestCachePolicy< CachePolicy > k__BackingField
void OpenReadAsync(global::System.Uri address, object userToken)
void DownloadDataAsyncCallback(byte[] returnBytes, Exception exception, object state)
Task< Stream > OpenWriteTaskAsync(string address)
Task< byte[]> UploadValuesTaskAsync(string address, global::System.Collections.Specialized.NameValueCollection data)
void OpenWriteAsync(global::System.Uri address)
void DownloadFile(string address, string fileName)
void UploadStringAsync(global::System.Uri address, string method, string data, object userToken)
byte[] UploadFile(string address, string method, string fileName)
Task< WebResponse > GetWebResponseTaskAsync(WebRequest request)
virtual void OnDownloadProgressChanged(DownloadProgressChangedEventArgs e)
static void ThrowIfNull(object argument, string parameterName)
Task< byte[]> UploadDataTaskAsync(string address, byte[] data)
Task< string > DownloadStringTaskAsync(global::System.Uri address)
Stream OpenWrite(global::System.Uri address)
void UploadStringAsync(global::System.Uri address, string method, string data)
DownloadDataCompletedEventHandler DownloadDataCompleted
string DownloadString(global::System.Uri address)
string DownloadString(string address)
void DownloadBitsAsync(WebRequest request, Stream writeStream, global::System.ComponentModel.AsyncOperation asyncOp, Action< byte[], Exception, global::System.ComponentModel.AsyncOperation > completionDelegate)
virtual void OnUploadDataCompleted(UploadDataCompletedEventArgs e)
void UploadDataAsync(global::System.Uri address, string method, byte[] data)
void PostProgressChanged(global::System.ComponentModel.AsyncOperation asyncOp, WebClient.ProgressData progress)
static char IntToHex(int n)
void DownloadStringAsync(global::System.Uri address)
Task< string > UploadStringTaskAsync(string address, string method, string data)
virtual void OnUploadProgressChanged(UploadProgressChangedEventArgs e)
Task< byte[]> UploadFileTaskAsync(global::System.Uri address, string method, string fileName)
Task< string > UploadStringTaskAsync(global::System.Uri address, string method, string data)
Task< byte[]> UploadFileTaskAsync(string address, string fileName)
Task DownloadFileTaskAsync(string address, string fileName)
UploadValuesCompletedEventHandler UploadValuesCompleted
byte[] GetValuesToUpload(global::System.Collections.Specialized.NameValueCollection data)
void OpenReadAsync(global::System.Uri address)
Task< byte[]> DownloadDataTaskAsync(string address)
const string UploadValuesContentType
void DownloadDataAsync(global::System.Uri address)
byte[] DownloadDataInternal(global::System.Uri address, [Out] WebRequest request)
Task< byte[]> UploadValuesTaskAsync(global::System.Uri address, string method, global::System.Collections.Specialized.NameValueCollection data)
bool AllowWriteStreamBuffering
void DownloadFileAsync(global::System.Uri address, string fileName)
byte[] UploadData(string address, byte[] data)
void HandleCompletion< T, TAsyncCompletedEventArgs, TCompletionDelegate >(TaskCompletionSource< T > tcs, TAsyncCompletedEventArgs e, Func< TAsyncCompletedEventArgs, T > getResult, TCompletionDelegate handler, Action< WebClient, TCompletionDelegate > unregisterHandler)
void OpenWriteAsync(global::System.Uri address, string method, object userToken)
Stream OpenRead(global::System.Uri address)
static IWebProxy DefaultWebProxy
static WebRequest Create(global::System.Uri requestUri, bool useUriBase)
static Encoding BigEndianUnicode
CodePageDataItem dataItem
static int Decrement(int location)
AsyncTaskMethodBuilder< WebResponse ><> t__builder
void SetStateMachine(IAsyncStateMachine stateMachine)
AsyncVoidMethodBuilder t__builder
global::System.ComponentModel.AsyncOperation asyncOp
byte[]< copyBuffer > ConfiguredTaskAwaitable< WebResponse >.ConfiguredTaskAwaiter u__1
ConfiguredValueTaskAwaitable< int >.ConfiguredValueTaskAwaiter u__2
ConfiguredValueTaskAwaitable.ConfiguredValueTaskAwaiter u__3
Action< byte[], Exception, global::System.ComponentModel.AsyncOperation > completionDelegate
void SetStateMachine(IAsyncStateMachine stateMachine)
AsyncVoidMethodBuilder t__builder
ConfiguredValueTaskAwaitable< int >.ConfiguredValueTaskAwaiter u__3
ConfiguredTaskAwaitable< Stream >.ConfiguredTaskAwaiter u__1
Action< byte[], Exception, global::System.ComponentModel.AsyncOperation > completionDelegate
ConfiguredValueTaskAwaitable.ConfiguredValueTaskAwaiter u__2
void SetStateMachine(IAsyncStateMachine stateMachine)
global::System.ComponentModel.AsyncOperation asyncOp
static AsyncVoidMethodBuilder Create()