LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 12-06-2005, 09:06 AM   #1
Harry Seldon
Member
 
Registered: Feb 2004
Distribution: SLES 9
Posts: 112

Rep: Reputation: 15
curl configuration problem


I'm trying to access a natted secure ftp server using curl. I can get all the way in but when I try to upload a file I get:

< 425 Can't build data connection: Connection refused.
* Failed FTP upload: 425
* Uploaded unaligned file size (0 out of 15 bytes)
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- 0:00:03 --:--:-- 0* Closing connection #0
* SSLv3, TLS alert, Client hello (1):

curl: (25) Failed FTP upload: 425

The error 25 is "FTP couldn't STOR file. The server denied the STOR operation, used for FTP uploading." When I've asked the company I'm trying to upload this file to, they tell me that I wouldn't get this error if I was using a supported product. The problem is all the supported products are Windows based. Their only suggestion is that I use a put command instead of a stor command, even though they are the same thing. Does anyone have any thoughts on this or have a workaround?
 
Old 12-07-2005, 03:33 AM   #2
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 52
Quote:
Originally Posted by Harry Seldon
I'm trying to access a natted secure ftp server using curl. I can get all the way in but when I try to upload a file I get:

< 425 Can't build data connection: Connection refused.

The error 25 is "FTP couldn't STOR file. The server denied the STOR operation, used for FTP uploading.
No, 425 Error code as it said is : Can't open data connection. It is a network problem.

Quote:
Originally Posted by Harry Seldon
" When I've asked the company I'm trying to upload this file to, they tell me that I wouldn't get this error if I was using a supported product. The problem is all the supported products are Windows based. Their only suggestion is that I use a put command instead of a stor command, even though they are the same thing. Does anyone have any thoughts on this or have a workaround?
Mmmhhh (s)ftp are standard protocol, no need for a supported product ($$)

Put is the command understood by the interactive client program. It is then translated in "STOR" which is the FTP command. Eventhough I don't use curl, I don't think it is sending PUT on the socket!

1)Disable your firewall.
2)Try to switch from active / passive mode (add -P on the curl command line for active mode? -v for verbose mode will also help)
3)Try with (s)ftp
4)Try with winblows/"supported product"

Last edited by nx5000; 12-07-2005 at 03:34 AM.
 
  


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
Using Curl command backpackingbiker Ubuntu 1 06-21-2005 04:16 PM
Curl Conflict christer Linux - Software 0 10-13-2003 11:38 AM
X configuration problem - OR - Where did the configuration tool go??? t3kn0lu5t Debian 3 09-25-2003 07:19 PM
how to use curl to download? gexiaofei Linux - Software 6 07-26-2003 05:01 PM
Curl problem AkumaLoka Linux - Software 0 03-02-2003 05:07 PM


All times are GMT -5. The time now is 02:22 AM.

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