C# webrequest Connection keepalive

0 투표
//1st request
webrequest = (HttpWebRequest)HttpWebRequest.Create(sLink);
               
                webrequest.KeepAlive=true;
                //webrequest.Pipelined = true;
                webrequest.Timeout =3000;
                webrequest.Method = "POST";
                webrequest.UserAgent= "beone/v1.0";
                webrequest.Headers.Add("Beone-Encoding: " + gwid + "\n");
                   
                webrequest.ProtocolVersion = HttpVersion.Version10;   
                webrequest.Connection = "keepalive";
               
                           
                string sdata = "Testing";
                byte [] data = enc.GetBytes(sdata);
                Stream stream = webrequest.GetRequestStream();
                stream.Write(data,0,data.Length);
                stream.Close();
               
                HttpWebResponse webresponse = (HttpWebResponse)webrequest.GetResponse();
                StreamReader reader = new StreamReader(webresponse.GetResponseStream());
                char[] readbuffer = new char[256];
                int count = reader.Read(readbuffer,0,256);

                while(count>0)
                {
                    string outputdata = new string(readbuffer,0,count);
                    buffer = buffer + outputdata;
                    count = reader.Read(readbuffer,0,256);
                }
                MessageBox.Show(buffer);
//2nd request
  string sdata = "Testing";
                byte [] data = enc.GetBytes(sdata);
                Stream stream = webrequest.GetRequestStream();
                stream.Write(data,0,data.Length);
                stream.Close();
               
                HttpWebResponse response = (HttpWebResponse)webrequest.GetResponse();
                StreamReader reader1 = new StreamReader(webresponse.GetResponseStream());
                char[] readbuffer1 = new char[256];
                int count1 = reader.Read(readbuffer1,0,256);

                while(count1>0)
                {
                    string outputdata1 = new string(readbuffer1,0,count);
                    buffer = buffer + outputdata1;
                    count = reader.Read(readbuffer1,0,256);
                }

reader.Close();
                webresponse.Close();
                response.Close();

when does cialis patent expire [url=https://tadalaccess.com/#]generic cialis[/url] cialis from india online pharmacy
buying cialis in canada: <a href=" https://tadalaccess.com/# ">tadalafil 5mg once a day</a> - over the counter cialis 2017
purchasing cialis [url=https://tadalaccess.com/#]us cialis online pharmacy[/url] cialis otc 2016
buy antibiotics for uti: <a href=" https://biotpharm.shop/# ">Biot Pharm</a> - antibiotic without presription
Ero Pharm Fast: <a href=" https://eropharmfast.com/# ">Ero Pharm Fast</a> - Ero Pharm Fast
best online doctor for antibiotics <a href=" https://jutianwang.cn/home.php?mod=space&uid=24843&do=profile&from=space ">antibiotic without presription</a> or <a href=" https://images.google.com.bn/url?q=https://biotpharm.com ">Over the counter antibiotics pills</a>
https://cse.google.vg/url?q=https://biotpharm.com cheapest antibiotics
[url=https://maps.google.lu/url?q=https://biotpharm.com]get antibiotics quickly[/url] get antibiotics quickly and [url=https://www.oppo.xyz/home.php?mod=space&uid=21120]buy antibiotics online[/url] buy antibiotics online
Pharm Au24 <a href=" https://www.oppo.xyz/home.php?mod=space&uid=21122 ">PharmAu24</a> or <a href=" https://clients1.google.li/url?q=http://pharmau24.shop ">online pharmacy australia</a>
http://yu-kei.com/mobile/mt4i.cgi?id=1&mode=redirect&no=115&ref_eid=1325&url=https://pharmau24.shop Medications online Australia
[url=https://www.google.com.sg/url?q=https://pharmau24.shop]Medications online Australia[/url] Licensed online pharmacy AU and [url=http://80tt1.com/home.php?mod=space&uid=3445330]Pharm Au24[/url] pharmacy online australia
buy antibiotics over the counter: <a href=" https://biotpharm.com/# ">buy antibiotics online</a> - best online doctor for antibiotics
affordable ed medication <a href=" https://www.gztongcheng.top/home.php?mod=space&uid=920693 ">cheapest ed medication</a> or <a href=" https://www.google.com.gt/url?q=https://eropharmfast.com ">п»їed pills online</a>
http://toolbarqueries.google.co.ke/url?sa=i&url=https://eropharmfast.com cheapest ed online
[url=https://cse.google.dm/url?q=https://eropharmfast.com]online erectile dysfunction prescription[/url] low cost ed meds online and [url=https://app.guiigo.com/home.php?mod=space&uid=30509]ed rx online[/url] ed online pharmacy
kamagra pas cher: <a href=" https://kampascher.shop/# ">Kamagra oral jelly pas cher</a> - Kamagra oral jelly pas cher

당신의 답변

보여지는 당신의 이름 (옵션):
개인정보 보호: 이메일 주소는 이 알림을 발송하기 위해 사용됩니다.
안티-스팸 확인:
앞으로 이 검증을 피하려면,로그인 혹은 가입 하시기바랍니다.
구로역 맛집 시흥동 맛집
이 포스팅은 쿠팡 파트너스 활동의 일환으로, 이에 따른 일정액의 수수료를 제공받습니다.
add
...