473,320 Members | 1,858 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,320 software developers and data experts.

HTTP Proxy authentification problem

Hi,
My first post on this newsgroup as I have a very strange problem with a WSE
client trying to access a .NET WS through a secured HTTP Proxy : it is woking
with HTTPS but not with HTTP ?! I am really talking about the same code and
only changing the server url.
The problem is due to the HTTP proxy authentification but we don't
understand why. Using EtherReal, we can see in both cases that the WS client
is trying to access the server and is receiving a HTTP 407 from the proxy.
But then, there is a major difference :
- when using HTTPS, the WSE client is sending credentials and everything is
working
- when using HTTP, nothing happens : it seems that the WSE client is not
sending anything : we have a 100 seconds gap between the HTTP 407 and the
first WSE client action (timeout). We finally get a timeout exception.

When using HTTPS url, we can use a very simple line of code and it is
working perfectly well :
ws.Proxy = new WebProxy(new Uri(proxyURL),true,null, new
NetworkCredential(login, pwd));

Now, we tried this code but we got the same result :
ws.Proxy = WebProxy.GetDefaultProxy();
CredentialCache cc = new CredentialCache();
cc.Add(new Uri(proxyURL),"Basic",new NetworkCredential(login,pwd));
ws.Proxy = new WebProxy(new Uri(proxyURL),true,null,cc);

Hope someone can help us ...
Thx
Xavier

Dec 23 '05 #1
0 1759

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Chris Gray | last post by:
Is there such a beast? In particular, I'm looking for a production-quality proxy server fully compliant with HTTP/1.1 written in Python. If there isn't, is there anything that comes close? ...
6
by: Ivan Demkovitch | last post by:
Hi! I'm reading thru everything I could find on "user Authentification" topic. There is couple of options ASP.NET suggest: Forms, Passport, etc... My application is simple portal with forums...
1
by: bob | last post by:
1) Authentification NT: En ASP (pas ASP.Net), comment on recupere le login/pwd windows ? On veut automatiquement authentifier un utilisateur d'après son login NT (il a pas besoin de se...
1
by: HIK | last post by:
I am porting an ASP.net 1.1 application from a win2K server to win2k3 server. The application uses forms authentification. The authentification information is in a query string. The user goes...
2
by: Te-Deum | last post by:
Hi, I use this function to download the source of an internet web page, but if i have a proxy, it doesn't work. Do you know how i can add a proxy authentification ? Public Function...
1
by: Hervé Piedvache | last post by:
Dear all, I have a trouble with the pam authentification for PostgreSQL. I have add in the pg_hba.conf the good line ... and I have create a /etc/pam.d/postresql file which contains : auth ...
8
by: Tim Reynolds | last post by:
Our .Net application calls a web method of aplpication 2 that resides on their Apache server. When I as a developer C#, Studios 2003, make the call to their web method from my desktop, I receive no...
4
by: jens Jensen | last post by:
Hello, I was given the task to build a .Net client that will talk to IBM integration server via HTTP post. The idea is that each http packet exchange should be authenticated via X09 "client...
6
by: Georg | last post by:
Hello, I am trying to load a web page over a HTTP proxy with the POST method and I am using the following code: // open request (string url) HttpWebRequest httpWebRequest =...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....

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.