LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 05-04-2007, 11:36 AM   #1
rmvinodh123
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 "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.
 
  


Reply


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


All times are GMT -5. The time now is 12:09 PM.

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