| | |
proxy option with in my app
Please support our C# advertiser: Intel Parallel Studio Home
![]() |
1
#2 Oct 7th, 2009
If your are working with asp.net web application then it is easy and fast in asp.net using httpmodule.
Read this article - http://www.hanselman.com/blog/AnIPAd...n9Minutes.aspx
Extending ASP.NET Processing with HTTP Modules
Read this article - http://www.hanselman.com/blog/AnIPAd...n9Minutes.aspx
Extending ASP.NET Processing with HTTP Modules
Failure is not fatal, but failure to change might be. - John Wooden
•
•
Join Date: Aug 2009
Posts: 7
Reputation:
Solved Threads: 0
0
#3 Oct 7th, 2009
•
•
•
•
If your are working with asp.net web application then it is easy and fast in asp.net using httpmodule.
Read this article - http://www.hanselman.com/blog/AnIPAd...n9Minutes.aspx
Extending ASP.NET Processing with HTTP Modules
This is a desktop application, I just want to learn how to implement proxy settings in my applications to give more privacy when using my apps. I read that the System.Net.WebProxy class could be the answer but im not sure anyone clarify this for me please
thank you for your post
0
#4 Oct 8th, 2009
C# Syntax (Toggle Plain Text)
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Net; using System.Web; using System.IO; namespace daniweb { public partial class frmProxy : Form { public frmProxy() { InitializeComponent(); } private bool useProxy; private void button1_Click(object sender, EventArgs e) { useProxy = true; WebProxy proxy = new WebProxy("146.57.249.99", 3124); HttpWebRequest req = (HttpWebRequest)HttpWebRequest.Create(@"http://www.whatismyip.com"); if (useProxy) req.Proxy = proxy; req.Method = "GET"; HttpWebResponse objResponse = (HttpWebResponse)req.GetResponse(); string htmlStuff; using (StreamReader sr = new StreamReader(objResponse.GetResponseStream())) { htmlStuff = sr.ReadToEnd(); sr.Close(); } System.Diagnostics.Debugger.Break(); } } }
0
#6 Oct 8th, 2009
You're welcome
Please mark this thread as solved if you have found a solution to your problem and good luck!
Please mark this thread as solved if you have found a solution to your problem and good luck!
![]() |
Similar Threads
- The best free proxy services (Domains and DNS)
- which way samair.ru check proxy? (C++)
- are frames good or bad (Site Layout and Usability)
- SSL Blocked Please Help (Viruses, Spyware and other Nasties)
- dialup networking "again" (Networking Hardware Configuration)
- HiJackThis output (Viruses, Spyware and other Nasties)
- Internet cant connect directly! Trojan? (Viruses, Spyware and other Nasties)
- Internet Explorer-OUT OF ORDER + More (Viruses, Spyware and other Nasties)
- help hijackthis log (Viruses, Spyware and other Nasties)
- http://searchexe.com/passthrough/index.html?http://www.msn.com? (Viruses, Spyware and other Nasties)
Other Threads in the C# Forum
| Thread Tools | Search this Thread |
.net access ado.net algorithm array barchart basic bitmap box broadcast buttons c# check checkbox client color combobox contorl control conversion csharp custom database datagrid datagridview dataset datetime degrees deployment development disabled displayingopenforms draganddrop drawing editing editor encryption enum event excel file form format forms function gdi+ httpwebrequest i18n image imageprocessing index input install java label list listbox mandelbrot math mathematics mouseclick mysql operator oracle path photoshop picturebox pixelinversion post programming radians regex remote remoting richtextbox rows serialization server setup sleep socket sql statistics stream string table text textbox thread time timer update usercontrol validation visualstudio webbrowser windows winforms wpf xml






