Web Connection 5.0
Re: 'The server name or address could not be resolved'
09/05/2010
12:16:07 PM
30U0Q798K Show this entire thread in new window
Gratar Image based on email address
From:
Harvey Mushman
To:
Jeff Roehl 
Attachments:
None
Try this, I think it answers your need. I suspect when you encode the entire url, their server gags on the domain portion of the string.

# include wconnect.h DO wconnect o=CREATEOBJECT('wwHTTP') chtml = o.HTTPGet('http://en.wikipedia.org/wiki/' + UrlEncode('Category:Ancient_Roman_art') ) ShowHTML(cHtml) RETURN

--HM

In the following code:

Release o o = Createobject('wwIPStuff') c_html = o.HTTPGet('http://en.wikipedia.org/wiki/Category:Ancient_Roman_art')

o.nerror returns 12007
o.cerrormsg returns "The server name or address could not be resolved"

I am assuming that it is doing this because there is a colon ":" in the URL.

Is there any way around this?

Do I encode this URL in some way?

Thanks in advance.

Jeff