[Request] Reading From WebPage
I am looking for a C++ code to read from a webpage. So I basically need the below visual basic code transfered to C++. Thank you.
Code:
Dim Cache As String
Dim WorkingStatus
Cache = "http://example.co"
Dim request As System.Net.HttpWebRequest = System.Net.HttpWebRequest.Create(Cache)
Dim response As System.Net.HttpWebResponse = request.GetResponse()
Dim sr As System.IO.StreamReader = New System.IO.StreamReader(response.GetResponseStream(), System.Text.Encoding.GetEncoding("windows-1252"))
WorkingStatus = sr.ReadToEnd()
I don't know nor like VB, So no.
But I have a script that can read easily from web-config files, If they are formatted like XML files, Witch I use for my trainer, And then convert the info gathered to variables / text / whatever they need to be.
Interested in this ? Or you need to querry on a ''Normal'' Webpage ?
Mely
Psst ; What do you do in the C++ Section with a VB Siggy ?