• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1433
  • Last Modified:

ASP.net VB.net WebClient - URI formats are not supported

Hi

I am getting the error "URI formats are not supported" in the following code:

   Sub oUpload_String()
        Dim URL As String = "http://IPAddress:Port/APIWebModule/APIServlet"
        Using client As New WebClient()
            Dim values As New NameValueCollection()
            values.Add("name", "value")
            Dim response = client.UploadValues(URL, "POST", values)
        End Using
    End Sub
0
Murray Brown
Asked:
Murray Brown
1 Solution
 
Alan WarrenCommented:
Hi murbro,

No error posting, suspect the APIServlet to be the culprit.
    Dim URL As String = "http://www.experts-exchange.com/"
    Using client As New System.Net.WebClient()
      Dim values As New NameValueCollection()
      values.Add("name", "value")
      Dim response = client.UploadValues(URL, "POST", values)
    End Using

Open in new window

Alan ";0)
0
 
Murray BrownMicrosoft Cloud Azure/Excel Solution DeveloperAuthor Commented:
Thanks again Alan. Much appreciated!
Murray
0

Featured Post

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now