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

4

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.

2

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 
0

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy