941 {
942 if (
_headers !=
null && request is HttpWebRequest httpWebRequest)
943 {
945 string text2 =
_headers[
"Connection"];
946 string text3 =
_headers[
"Content-Type"];
949 string text6 =
_headers[
"User-Agent"];
959 if (!
string.IsNullOrEmpty(
text))
960 {
961 httpWebRequest.Accept =
text;
962 }
963 if (!string.IsNullOrEmpty(text2))
964 {
965 httpWebRequest.Connection = text2;
966 }
967 if (!string.IsNullOrEmpty(text3))
968 {
969 httpWebRequest.ContentType = text3;
970 }
971 if (!string.IsNullOrEmpty(text4))
972 {
973 httpWebRequest.Expect = text4;
974 }
975 if (!string.IsNullOrEmpty(text5))
976 {
977 httpWebRequest.Referer = text5;
978 }
979 if (!string.IsNullOrEmpty(text6))
980 {
981 httpWebRequest.UserAgent = text6;
982 }
983 if (!string.IsNullOrEmpty(text7))
984 {
985 httpWebRequest.Host = text7;
986 }
987 }
988 }
WebHeaderCollection _headers