Using Wget Command Upload Files to Http
I'm Using Wget Command Upload Files to Http. Wget --No-Check-Certificate --User=Username --Password=Password --Header="Content-Type: Multipart/Form-Data...
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
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
2 Answers
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.
After many tries I was not able to upload using wget. Kept getting bad requests.
I managed to use curl instead:
curl -v -F filename=image.jpg -F upload=@image.jpg