T
Tommy Martin
In my project I need to get an XML document at a web address and save it
here for use in another part of the program. If I enter the address in my
browser I can see the xml just fine. If I use this code the data is
encrypted. It is encrypted on the web site but I assume the cgi that
displays it uncompresses on the fly.
How can I make this happen in my code so I can get the uncompressed XML?
Thanks in advance for any help.
Tommy
Dim objResponse As WebResponse
Dim objRequest As WebRequest
objRequest =
System.Net.HttpWebRequest.Create("http://setiboinc.ssl.berkeley.edu/ap/stats
/user_total_credit_0.gz")
objResponse = objRequest.GetResponse()
Dim oSR As New StreamReader(objResponse.GetResponseStream())
cResult = oSR.ReadToEnd()
oSR.Close()
MsgBox(cResult)
here for use in another part of the program. If I enter the address in my
browser I can see the xml just fine. If I use this code the data is
encrypted. It is encrypted on the web site but I assume the cgi that
displays it uncompresses on the fly.
How can I make this happen in my code so I can get the uncompressed XML?
Thanks in advance for any help.
Tommy
Dim objResponse As WebResponse
Dim objRequest As WebRequest
objRequest =
System.Net.HttpWebRequest.Create("http://setiboinc.ssl.berkeley.edu/ap/stats
/user_total_credit_0.gz")
objResponse = objRequest.GetResponse()
Dim oSR As New StreamReader(objResponse.GetResponseStream())
cResult = oSR.ReadToEnd()
oSR.Close()
MsgBox(cResult)