cURL / Mailing Lists / curl-users / Single Mail

curl-users

Https upload with curl

From: <kanakamahesh.anasuri_at_wipro.com>
Date: Mon, 24 Apr 2006 14:33:32 +0530

Hi All,


I am trying to setup download/upload files in to https server (using
Apache server 2.0 versions)


I am using curl to do operations. I created sample ssl certificate and
trying to download the sample1.txt, it worked fine. I executed commands
from /sslcert in apache configured directory.


Download: curl --cacert cacert.pem -L
https://10.201.114.32:443/basic/sample1.txt


I had problem with upload operation. It gives the following error


$ curl --cacert cacert.pem --upload-file sample2.txt
https://10.201.114.32:443/basic/


<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">

<html><head>

<title>405 Method Not Allowed</title>

</head><body>

<h1>Method Not Allowed</h1>

<p>The requested method PUT is not allowed for the URL
/basic/hai.txt.</p>

</body></html>


Can any one help how to resolve this error? (I guess that put
handler/put service should be enabled in Apache server). Any relevant
information to upload file using https is also helpful


Thanks alot if you have any answer/solution to the problem.


Mahesh


The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.

WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.

www.wipro.com
Received on 2006-04-24