473,385 Members | 1,817 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Connecting to webserver over proxy

84
Hi Guys,
I am writing a new application which will download files from http web server [c# .Net 2.0] using MTOM & WSE 3. I have written a test client for this [in c# .Net 2.0] which works fine on normal networks. I run into problem when the network where client is running is Proxy.

Can someone please advise how can I connect using proxy to the web service for clients using proxy? If possible some tutorial or a sample project would be highly appreciated as I have never worked with proxy networks before!


Thanks in advance!
Jul 3 '08 #1
2 1323
Plater
7,872 Expert 4TB
I *think* you can attempt to look in the registry (Where? don't know) to find the proxy information stored with IE. (What to do if they don't use IE, I also don't know) And could try using that?

I think that the HttpWebRequest object has support for putting proxy information in. There might be some msdn help in that area.

Basic HTTP request
Expand|Select|Wrap|Line Numbers
  1. GET / HTTP/1.0
  2.  
  3.  
Basic HTTP request through a proxy
Expand|Select|Wrap|Line Numbers
  1. GET http://bytes.com/ HTTP/1.0
  2.  
  3.  

Note, that when going through a proxy, the request URI in the GET line has the full web address (the proxy can then chose to send off the regular HTTP request to the correct location that way)
Jul 3 '08 #2
alag20
84
I *think* you can attempt to look in the registry (Where? don't know) to find the proxy information stored with IE. (What to do if they don't use IE, I also don't know) And could try using that?

I think that the HttpWebRequest object has support for putting proxy information in. There might be some msdn help in that area.

Basic HTTP request
Expand|Select|Wrap|Line Numbers
  1. GET / HTTP/1.0
  2.  
  3.  
Basic HTTP request through a proxy
Expand|Select|Wrap|Line Numbers
  1. GET http://bytes.com/ HTTP/1.0
  2.  
  3.  

Note, that when going through a proxy, the request URI in the GET line has the full web address (the proxy can then chose to send off the regular HTTP request to the correct location that way)
Thanks Plater. I am not too fussed about retrieving these settings from IE registry as most users will be more than happy to re-enter this information. Can someone guide me to a sample for HTTP MTOM request over proxy?

Thanks,
Jul 4 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Ganesh | last post by:
Hi, i need to see if a user enters the correct username/password to authenticate to a proxy. My problem is... through the following code, i am able to connect to a proxy with even invalid...
12
by: Ann Marinas | last post by:
Hi all, I would like to ask for some help regarding separating the asp.net webserver and the sql server. I have created an asp.net application for a certain company. Initially, we installed...
3
by: chethana | last post by:
I am using copmaq ipaq pocket pc 2002 h3600 series. This device is synchronized with desk top pc running on windows 2000. I want this pocket pc to be conncted to internet .Kindly help ...
3
by: Wild Wind | last post by:
Hello all, I apologise in advance for the long windedness of this post, but I feel that if I am going to get any solution to this problem, it is important that I present as much information...
13
by: ShadowOfTheBeast | last post by:
Hi All, i have just written my first Webservice and client(windows form) but when i try to get a web references to the client to generate the proxy class on the client, i get an error this...
3
by: armando perez | last post by:
Hi, this is my first time here, but I was looking for something that may help me, and still, I haven't found something to use. I'm using a website made in .NET with C#, when I'm running my site...
2
by: Chema | last post by:
Hi all. I have a little script to connect to the internet and download some files. I developed it in my house (direct connection) and it wordked properly. But the problem is that in the office...
1
by: swissclash79 | last post by:
Good morning everybody I have a question regarding configuring mappings in the development webserver. I am currently implementing a proxy server that is lied between the clients and a customer's...
2
by: chazzy69 | last post by:
I using a php script to access another website and retrieve data from that website, i need to use a proxy for this script so that the script will access the website through a specified proxy. ...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.