Review your favorite Linux distribution.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 05-04-2007, 11:36 AM   #1
LQ Newbie
Registered: Apr 2007
Posts: 8

Rep: Reputation: 0
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 "" http://vinod/abc

* About to connect() to vinod port 80
* Trying connected
* Connected to vinod ( 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
<title>301 Moved Permanently</title>
<h1>Moved Permanently</h1>
<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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
curl problem in fuse shahidbashir7861 Linux - Software 7 04-06-2007 04:17 PM
php curl integration problem tstName Linux - Software 0 06-27-2006 02:05 AM
curl configuration problem Harry Seldon Linux - Software 1 12-07-2005 03:33 AM
Using Curl command backpackingbiker Ubuntu 1 06-21-2005 04:16 PM
Curl problem AkumaLoka Linux - Software 0 03-02-2003 05:07 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:12 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration