LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Problem in uploading using Curl command. (https://www.linuxquestions.org/questions/programming-9/problem-in-uploading-using-curl-command-551287/)

rmvinodh123 05-04-2007 11:36 AM

Problem in uploading using Curl command.
 
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 "name=@cmds.zip" 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">
<html><head>
<title>301 Moved Permanently</title>
</head><body>
<h1>Moved Permanently</h1>
<p>The document has moved <a href="http://vinod/abc/">here</a>.</p>
<hr>
<address>Apache/2.2.0 (Fedora) Server at vinod Port 80</address>
</body></html>
* Closing connection #0


A similar problem occurs when i use the T option.

Thanks in advance.


All times are GMT -5. The time now is 05:37 PM.