473,320 Members | 1,841 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.

PSIA: Digest authentication not working

Hi,

I'm facing one problem with digest authentication over HTTP request.

We have got one HTTP server simulator which runs in Linux OS which is being used in Windows XP as VMWare machine.

All request and response are POST based, ie URLs.
Eg. http://159.99.211.111/PSIA/System/deviceInfo

When we try to access this URL from Internet Explorer, everything is smooth - first request will fail, user will then provide username/pwd, and then second request succeeds.

But the same we are trying in a c# client, which doesn't work. We had used the same code present in MSDN referred below :
http://msdn.microsoft.com/en-us/library/aa383144%28VS.85%29.aspx

The second response fails as well. The root cause is that the header of second request doesn't contain "Authorization:" tag. But we are not able to find why this information is not being sent.

This same c# code is working fine on other digest authentication cameras/simulators.

I've attached the network packet flow taken from Wireshark Network Protocol analyzer tool.

Can somebody help me out? I can provide more information if required.

Regards,
Praveen.
Attached Files
File Type: txt IE input output.txt (2.4 KB, 489 views)
File Type: txt PSIA input output.txt (1.2 KB, 504 views)
Jun 21 '10 #1
1 2774
I narrowed down the problem. The root cause is in sending password as empty. If I set it to some text it works fine. If I try to send it empty it fails.

I'm setting it as:
szServerPassword = L""; //Its VC++ code
szServerPassword is of type LPCWSTR

Is there any problem in sending password as empty this way?

Regards,
Praveen.
Jun 22 '10 #2

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

Similar topics

3
by: S?rgio Nunes | last post by:
Hi, I'm trying to retrieve the contents of a URL using file_get_contents($url). The problem is that the URL is protected via *HTTP Digest Authentication*. Is there any php library that can...
0
by: Jp Calderone | last post by:
I've been trying to implement support for this authentication scheme for a little while now, and in the last couple days I've been completely stumped. I know about the digest authentication code...
2
by: john | last post by:
I'm trying to access the XML version of my Tivo now playing list with python. It uses auth digest HTTP authentication. I could really use some help! I'm able to get this page using curl: curl...
2
by: trapeze.jsg | last post by:
Hi. Is there anybody who have tried to use python to access Microsofts MapPoint soap services? I am trying hard but I have run into a big thick wall called md5 digest authentication. The...
0
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...
0
by: Wayne Carlaw | last post by:
I'm trying to implement Peter Bromberg's Digest authentication .dll (http://www.eggheadcafe.com/articles/20030701.asp); and have it working quite well. One thing I've noticed though that I can't...
0
by: Michele | last post by:
I'm using apache 2.0.59 and php 5.2. I've a problem authenticating a user. When a user is not authenticated he's being redirected to http://...../index/index.php index php will then send the...
2
by: Dan Lenski | last post by:
Hi all, I've got a very simple HTML proxy server to access the web from my cell phone (based on this code: http://www.okisoft.co.jp/esc/python/proxy/). It's a very retarded phone that freezes if...
2
by: Reg | last post by:
Hello, Is it possible to code Digest based Authentication to small socket TCP/HTTP server? Has anyone experince how to do it? Cheers and Thanks,
0
by: embeddedbob | last post by:
Hi there, I appreciate any help on the following issue. I can't seem to find any other similar topic. (CS4, ActionScript 3.0, Flash 10) I have a SWF embedded within a page that is protected by...
0
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...
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
1
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....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
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...

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.