Get-Url returns 'Invalid Data'

Topics: User Forum
Jul 8, 2007 at 6:58 AM
I'm using Get-Url to scape a webpage, but instead of returning the entire html content of a webpage, it returns the only about half the content with an 'Invalid Data' message appended to the end of it. Any clues as to why this might be happening?

Coordinator
Jul 12, 2007 at 12:08 AM
This came up on the newsgroup and the issue there was a malformed query. I would recommend using System.Web.HttpUtility.UrlEncode().
Developer
Jul 13, 2007 at 4:15 AM
I didn't see the newsgroup thread ... do we need to just wrap the URL parameter in UrlEncode inside the Get-URL script, instead so people don't have to do it themselves?