Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using WGET command upload files to http

Tags:

linux

unix

wget

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://[email protected]

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

like image 494
senthil Avatar asked Nov 14 '25 11:11

senthil


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.

like image 150
MrX Avatar answered Nov 16 '25 23:11

MrX


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 [email protected] http://localhost:8080/api/upload
like image 40
Evandro Pomatti Avatar answered Nov 17 '25 00:11

Evandro Pomatti



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!