I have a website hosted in localhost. I'm using as a web server "EasyPHP".
I need to use a command line by cURL to send a file to a directory of the website.
Let's suppose that the URL of the website is :
localhost/testing_curl
And that "some_package.zip" is under the local directory :
C:\testing
So I need to make this command line work from MS-dos terminal :
curl -T some_package.zip localhost/test_curl/new_package_name.zip
And this :
curl -T some_package.zip http://localhost/test_curl/new_package_name.zip
I checked the configuration file php.ini and I un-commented this :
extension=php_curl.dll
Then I restarted EasyPHP. But this didn't help.
I keep get this error message :
The PUT
method is not allowed for the requested URL.
under this error code :
Error 405
For info : This worked for me to send a header : How to send header using PHP curl command line?