473,799 Members | 3,082 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

PreAuthenticate = True - having no effect...

We're calling a Web Service from a VB.NET application (written with
VS2005) but no authentication headers are being sent even with
PreAuthenticate = True.
EOS.PreAuthenti cate = True
EOS.Credentials = New System.Net.Netw orkCredential(" user1",
"xxxxxxx")

We've examined the request headers with Fiddler and no headers are
present. We were under the impression that PreAuthenticate forced
authentication:
http://msdn.microsoft.com/en-us/libr...henticate.aspx

The only special aspect of our web service is that the server does not
actually challenge for authentication and we can't influence this
(authentication is optional). How can we "force" the Authorization:
Basic... header to be sent?

When we manually construct the same request and add the authentication
header everything works as desired:
Authorization: Basic xxxblahblahxxx
Jun 27 '08 #1
0 1519

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

Similar topics

6
1489
by: The Master | last post by:
As the subject states, I'm having issues with if else statements that are testing true in IE but false in Mozilla. At first I Thought maybe the way I was splitting the string was leaving trailing white spaces in Mozilla, but that was not the case (as the alert in the else statement shows). So I'm at a complete loss here. The reason for this script is to make the button mouse overs to remain active on their respective pages, without having...
17
3384
by: Gabriel Mejía | last post by:
Services or applications using ActiveX Data Objects (ADO) 2.0 or greater may intermittently return empty recordsets on queries that should be returning valid results. At the time the problem occurs, the same queries successfully return the expected data when run from non-ADO sources, such as from ISQL in Microsoft SQL Server. This problem predominantly occurs on multi-processor computers but has also been known to occur on single-processor...
14
3442
by: root | last post by:
Hi group, Apologies in advance if this has been asked somewhere before, but I haven't managed to get anything from the Google archives - I've been getting introductory guides to C++ all day long. I am writing a program in Visual C++ 6 SP5. My code has a lot of "if" statements - 19 to be exact. If the if statements are true (technically, there should only be one that is ever true), the program needs to continue on after the if...
0
2337
by: Wolfgang Meier | last post by:
I am using the following code to retrieve a document from my web server: HttpWebRequest req = (HttpWebRequest)WebRequest.Create("http://example.com/"); req.Method = "GET"; req.PreAuthenticate = true; req.Credentials = new NetworkCredential("user", "pass"); HttpWebResponse res = (HttpWebResponse)req.GetResponse(); res.Close();
4
2508
by: Bernie Raffe | last post by:
When I change the 'cookieless' flag in the WebConfig file to true, everything works fine on my local PC, but the images fail to appear when using the remote server. I specify my images throughout using a relative directory structure, such as 'images/topbanner.jpg'. I tried changing this to ~/images/topbanner.jpg and .../images/topbanner.jpg, but this didn't work locally so I didn't even bother trying it out remotely. Tthe problem...
0
1497
by: Web Developer | last post by:
I'm creating an instance of a web service proxy, and setting the PreAuthenticate property to true, but it doesn't seem to have any effect. After creating the proxy instance, I make two web service calls back-to-back. When I look at the IIS logs, I see six entries with the following status codes. 401, 401, 200, 401, 401, 200. I understand that the first call should generate the 401, 401, 200 entries during the NTLM challenge-response...
59
4602
by: Pierre Quentel | last post by:
Hi all, In some program I was testing if a variable was a boolean, with this test : if v in My script didn't work in some cases and I eventually found that for v = 0 the test returned True So I changed my test for the obvious "if type(v) is bool", but I still find it confusing that "0 in " returns True
0
1393
by: serge calderara | last post by:
Dear all, I did not really catch what is the effect of that webservice property PreAuthenticate. Does any one has a clear ide on how it works ? regards serge
2
1406
by: daniel2335 | last post by:
Is it possible to add code into the database, so that it monitors certain value and performs an operation when certain conditions are true? I have a table with research in each having a completion time stamp. When this time stamp matchs the current time or has passed I want it to get removed from that table and another table to be edited. Whats the best way of doing this? Im cautious not the have a script checking it too often as it may...
0
9688
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9546
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10243
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10030
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9078
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6809
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5467
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4146
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3762
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.