[IronPython] Newbie Q - Simple HTTP XML Capture?
Dave Fugate
dfugate at microsoft.com
Thu Sep 27 12:30:54 PDT 2007
Thanks for reporting this. Due to some issues with the implementation of IronPython's socket module (see http://www.codeplex.com/IronPython/WorkItem/View.aspx?WorkItemId=10825), urllib.urlopen does not currently work. I'll see if I can get the priority of this bug elevated as there are quite a few votes for it.
From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of S C
Sent: Thursday, September 27, 2007 12:07 PM
To: users at lists.ironpython.com
Subject: [IronPython] Newbie Q - Simple HTTP XML Capture?
This runs in the vanilla Python 2.4 interpreter on Win32 but not if I paste it into the Visual Studio 2005 (with IronPython VSSIP installed) IDE:
import urllib
from xml.dom import minidom
remoteSock = urllib.urlopen("http://10.2.5.28:18/PolicyGroupServerAsset.xml")
#policyXml = remoteSock.read()
#print policyXml
policyXmlDoc = minidom.parse(remoteSock)
remoteSock.close()
print policyXmlDoc.toxml()
What steps should I take to convert this to something working?
Thanks.
________________________________
Invite your mail contacts to join your friends list with Windows Live Spaces. It's easy! Try it!<http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ironpython.com/pipermail/users-ironpython.com/attachments/20070927/d3ba518e/attachment.htm
More information about the Users
mailing list