Web Connection 5.0
Re: 'The server name or address could not be resolved'
09/05/2010
03:33:58 PM
30U0XD64V Show this entire thread in new window
Gratar Image based on email address
From:
Jeff Roehl
To:
Harvey Mushman 
Attachments:
None
Actually, it was the colon that needed to be encoded.

I was using the wrong code.

Thanks
Jeff

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