LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 06-03-2009, 03:44 PM   #1
lauram93
Member
 
Registered: Jul 2004
Location: California
Distribution: Slackware 10, Mandrake 10, Solaris 9 at school
Posts: 36

Rep: Reputation: 15
using cURL from the command line


Hi,

We currently use cURL from the command line to upload data to a database server. My knowledge of cURL is limited. I want to know how to find out what the value is for the timeout. I think there is a variable but I don't know how to access it.

Thanks in advance
Laura
 
Old 06-03-2009, 04:41 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982
Please check the manpage for basic application usage in future. You want the -m option for an app which may be slow to processes data, --connect-timeout for the raw tcp connection to be established.
 
Old 06-03-2009, 04:55 PM   #3
lauram93
Member
 
Registered: Jul 2004
Location: California
Distribution: Slackware 10, Mandrake 10, Solaris 9 at school
Posts: 36

Original Poster
Rep: Reputation: 15
I know how to set the timeout. But how do I find out what the timeout currently is?
 
Old 06-05-2009, 12:41 PM   #4
lauram93
Member
 
Registered: Jul 2004
Location: California
Distribution: Slackware 10, Mandrake 10, Solaris 9 at school
Posts: 36

Original Poster
Rep: Reputation: 15
Sorry if this is a dumb question. But I did look at the man page and I see the options to set the timeout (--connect-timeout and -m/--max-time) and we're not using these when we call curl yet there is still a timeout because the server was down one day and the command (which was called from an automated script) eventually timed out after awhile. I just want to know what the default timeout is.
 
Old 06-05-2009, 01:08 PM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982
I think it's 180 seconds, but just try it yourself, try to do a curl of a port that's not listening, e.g. google.com:12345
 
  


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 command with POST method and Authentication pedropolian Linux - Networking 0 03-16-2009 10:44 AM
xine command line? or some other command line only engine? lumix Linux - Software 2 08-10-2007 10:46 AM
Problem in uploading using Curl command. rmvinodh123 Programming 0 05-04-2007 11:36 AM
Using Curl command backpackingbiker Ubuntu 1 06-21-2005 04:16 PM
Command to output file content line by line aznluvsmc Programming 2 09-12-2004 07:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration