Linux – Using WGET command upload files to http

linuxunixwget

I'm using wget command upload files to http.

wget --no-check-certificate --user=username --password=password --header="Content-type: multipart/form-data boundary=FILEUPLOAD" --post-file filename  http://exmaple@.net

This is my error message:

`FOLDER_NAME'
Resolving EXAMPLE.NET… i
Connecting to EXAMPLE.NET|10.00.00.009|:80… connected.
HTTP request sent, awaiting response… 401 Access denied
Connecting to EXAMPLE.NET|10.00.00.009|:80… connected.
HTTP request sent, awaiting response… 500 Internal Server Error

Please help resolve the error.

Note : curl is not install in Server

Best Answer

ERROR => `FOLDER_NAME' Resolving EXAMPLE.NET... i Connecting to EXAMPLE.NET|10.00.00.009|:80... connected. HTTP request sent, awaiting response... 401 Access denied Connecting to EXAMPLE.NET|10.00.00.009|:80... connected. HTTP request sent, awaiting response... 500 Internal Server Error

The first response from the server is an access denied. I would look into the credentials you provided to authenticate. After that see if the error 500 still shows. And test by manually uploading instead of using wget to see that the form works.