Search
Search titles only
By:
Search titles only
By:
Log in
Register
Search
Search titles only
By:
Search titles only
By:
Menu
Install the app
Install
Forums
New posts
All threads
Latest threads
New posts
Trending threads
Trending
Search forums
What's new
New posts
New ads
New profile posts
Latest activity
Free Ads
Latest reviews
Search ads
Members
Current visitors
New profile posts
Search profile posts
Contact us
Latest ads
AWS Certified Solutions Architect-Associate + AWS Certified Cloud Practitioner
Sanjeewani95
Updated:
Wednesday at 8:16 PM
🚀 එක පැකේජ් එකයි - මාසෙටම Unlimited Internet! 🌐
sayuru bandara
Updated:
Tuesday at 10:57 AM
🎬 CapCut Pro 1 Month Access! LKR 600
sayuru bandara
Updated:
Tuesday at 10:55 AM
🚀 Google One AI PRO Plan (Gemini Pro Activation) – 18 Months Access! LKR 2200
sayuru bandara
Updated:
Tuesday at 10:53 AM
Canva Pro Lifetime Own Mail Activation LKR 500
sayuru bandara
Updated:
Tuesday at 10:51 AM
Electronics
Vehicles
Property
Search
Reply to thread
Forums
General
ElaKiri Talk!
වීබී දන්න අය ඉන්නවද මේ සයිට් එකේ?
Get the App
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Message
<blockquote data-quote="newdxc" data-source="post: 12919573" data-attributes="member: 406243"><p><strong>වීබී දන්න අය ඉන්නවද මේ සයිට් එකේ?</strong></p><p></p><p><span style="font-size: 18px">මචන්ලා මට ඕන මේ කොඩ් එක වෙනස් කරගන්න ප්රොක්සියක් හරහා වැඩ කරන්නත් පුලුවන් වෙන්න! HttpWebRequest එකට කොහොමද ප්රොක්සියක් දා ගන්නේ ?</span></p><p></p><p>[CODE]</p><p></p><p> Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click</p><p> </p><p> Dim req As HttpWebRequest = DirectCast(WebRequest.Create(TextBox3.Text), HttpWebRequest)</p><p> '' set up request</p><p> Try</p><p> Using response = req.GetResponse()</p><p> '' success in here</p><p> MsgBox("success ")</p><p> End Using</p><p> Catch ex As WebException</p><p> Console.WriteLine(ex.Status)</p><p> If ex.Response IsNot Nothing Then</p><p> '' can use ex.Response.Status, .StatusDescription</p><p> If ex.Response.ContentLength <> 0 Then</p><p> Using stream = ex.Response.GetResponseStream()</p><p> Using reader = New StreamReader(stream)</p><p> Console.WriteLine(reader.ReadToEnd())</p><p> End Using</p><p> End Using</p><p> End If</p><p> End If</p><p> End Try</p><p> End Sub</p><p>[/CODE]</p></blockquote><p></p>
[QUOTE="newdxc, post: 12919573, member: 406243"] [b]වීබී දන්න අය ඉන්නවද මේ සයිට් එකේ?[/b] [SIZE="5"]මචන්ලා මට ඕන මේ කොඩ් එක වෙනස් කරගන්න ප්රොක්සියක් හරහා වැඩ කරන්නත් පුලුවන් වෙන්න! HttpWebRequest එකට කොහොමද ප්රොක්සියක් දා ගන්නේ ?[/SIZE] [CODE] Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim req As HttpWebRequest = DirectCast(WebRequest.Create(TextBox3.Text), HttpWebRequest) '' set up request Try Using response = req.GetResponse() '' success in here MsgBox("success ") End Using Catch ex As WebException Console.WriteLine(ex.Status) If ex.Response IsNot Nothing Then '' can use ex.Response.Status, .StatusDescription If ex.Response.ContentLength <> 0 Then Using stream = ex.Response.GetResponseStream() Using reader = New StreamReader(stream) Console.WriteLine(reader.ReadToEnd()) End Using End Using End If End If End Try End Sub [/CODE] [/QUOTE]
Insert quotes…
Verification
Dahaya deken beduwama keeyada?
Post reply
Top
Bottom