Uploading to a web server

  • Thread starter Alvaro Lamas Castillo
  • Start date
A

Alvaro Lamas Castillo

I am trying to upload a file to an webserver, but I get a method not allowed
error from the server. Im doing something like:
Dim wc1 As New WebClient()

Dim response As Byte() = wc1.UploadFile(uriString, "POST", fileName)
 
H

Herfried K. Wagner [MVP]

Alvaro Lamas Castillo said:
I am trying to upload a file to an webserver, but I get a method
not allowed error from the server. Im doing something like:
Dim wc1 As New WebClient()

Dim response As Byte() = wc1.UploadFile(uriString, "POST", fileName)

Do you have the necessary rights to upload files to the webserver?
 
S

scorpion53061

Herfried,

How would the user authenticate against the web server or is that not
possible?
 
A

Alvaro Lamas Castillo

I have given me every right, since I'm testing to localhost at this stage,
obviously if you have any imput to when I actually go to a real online
server the help would be apretiated.
Alvaro
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top