I am having a problem with uploading a file to apache server using the curl command.
I have tried the -F and -T options but the file is not uploaded to the destination folder (even though file moved permanently
message appears in the terminal).
The following gets displayed but the file is not uploaded in the destination folder "abc".
curl -vF "firstname.lastname@example.org" http://vinod/abc
* About to connect() to vinod port 80
* Trying 127.0.0.1... connected
* Connected to vinod (127.0.0.1) port 80
> POST /abc HTTP/1.1
> User-Agent: curl/7.15.1 (i386-redhat-linux-gnu) libcurl/7.15.1 OpenSSL/0.9.8a zlib/1.2.3 libidn/0.6.2
> Host: vinod
> Accept: */*
> Content-Length: 456
> Expect: 100-continue
> Content-Type: multipart/form-data; boundary=----------------------------9441dbf626af
< HTTP/1.1 100 Continue
< HTTP/1.1 301 Moved Permanently
< Date: Wed, 27 Jun 2007 19:03:16 GMT
< Server: Apache/2.2.0 (Fedora)
< Location: http://vinod/abc/
< Content-Length: 295
< Connection: close
< Content-Type: text/html; charset=iso-8859-1
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<title>301 Moved Permanently</title>
<p>The document has moved <a href="http://vinod/abc/">here</a>.</p>
<address>Apache/2.2.0 (Fedora) Server at vinod Port 80</address>
* Closing connection #0
A similar problem occurs when i use the T option.
Thanks in advance.