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 MapPoint service uses rfc2617 to authenticate the user. I have a working account for this which works using C# dotnet and Borland Delphi 6.0. When I try to authenticate using python it fail. Here is what I do to provoke the rfc2617 challenge: import urllib2 r=urllib2.Request('http://findv3.staging.mappoint.net/Find-30/FindService.asmx') auth_handler = urllib2.HTTPDigestAuthHandler() auth_handler.add_password('MapPoint','findv3.staging.mappoint.net','user','passwd') opener = urllib2.build_opener(auth_handler) urllib2.install_opener(opener) urllib2.urlopen(r) I can see using ethereal to monitor the network trafic, that urllib2 resonds to the challenge in a way that seems reasenable, but authorization is not granted: Challenge: HTTP/1.1 401 Unauthorized Connection: close Date: Mon, 05 Sep 2005 07:19:28 GMT Server: Microsoft-IIS/6.0 P3P:CP="BUS CUR CONo FIN IVDo ONL OUR PHY SAMo TELo" X-Powered-By: ASP.NET WWW-Authenticate: Digest qop="auth", realm="MapPoint", nonce="de28fc616ef19b278674095211006e1fcceb504c93d76d242aa90491e640" Content-Length: 0 Response: GET /Find-30/FindService.asmx HTTP/1.1 Accept-Encoding: identity Host: findv3.staging.mappoint.net Connection: close Authorization: Digest username="106288", realm="MapPoint", nonce="de28fc616ef19b278674095211006e1fcceb504c93d76d242aa90491e640", uri="/Find-30/FindService.asmx", response="2259380697df5b32a010a2d622415d10", qop=auth, nc=00000001, cnonce="6a949f85f64abd0f" User-agent: Python-urllib/2.4 Best regards Jakob Simon-Gaarde
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4