View Single Post
  #6   Report Post  
Posted to sci.electronics.repair
David_B David_B is offline
external usenet poster
 
Posts: 80
Default OT - Computing question!

Adrian C wrote:
On 07/01/2012 09:07, David_B wrote:
Redirection - is there some way to 'see' the process?


I'm trying to learn about computing matters but am confused as to how
this can happen.

If I type, for example, http://www.dreamsevermore.com/ into an address
bar of one of my browsers and click 'go' (if necessary) I'm immediately
whisked off to here instead:- http://i43.tinypic.com/2vt8io5.jpg


As you are using a Mac, you should have cUrl already installed. Try this
from terminal.

http://www.g-loaded.eu/2006/10/06/ch...ers-with-curl/


Hello Adrian

Here's a snippet of what I found - I had no idea about such matters!

Thank you so much - I have much to consider/learn!

Dave

*

try 'curl --help' or 'curl --manual' for more information
unknown-00-23-12-24-26-b4:~ davidandtrishab$ curl --manual
_ _ ____ _
Project ___| | | | _ \| |
/ __| | | | |_) | |
| (__| |_| | _ | |___
\___|\___/|_| \_\_____|

NAME
curl - transfer a URL

SYNOPSIS
curl [options] [URL...]

DESCRIPTION
curl is a tool to transfer data from or to a server, using one
of the
supported protocols (DICT, FILE, FTP, FTPS, GOPHER, HTTP, HTTPS,
IMAP,
IMAPS, LDAP, LDAPS, POP3, POP3S, RTMP, RTSP, SCP, SFTP, SMTP,
SMTPS,
TELNET and TFTP). The command is designed to work without user
inter-
action.

curl offers a busload of useful tricks like proxy support, user
authen-
tication, FTP upload, HTTP post, SSL connections, cookies, file
trans-
fer resume and more. As you will see below, the number of
features will
make your head spin!

curl is powered by libcurl for all transfer-related
features. See
libcurl(3) for details.

URL
The URL syntax is protocol-dependent. You'll find a detailed
descrip-
tion in RFC 3986.

You can specify multiple URLs or parts of URLs by writing
part sets
within braces as in:

http://site.{one,two,three}.com

or you can get sequences of alphanumeric series by using [] as in:

ftp://ftp.numericals.com/file[1-100].txt
ftp://ftp.numericals.com/file[001-100].txt (with leading zeros)
ftp://ftp.letters.com/file[a-z].txt

Nested sequences are not supported, but you can use several
ones next
to each other:

http://any.org/archive[1996-1999]/vol[1-4]/part{a,b,c}.html

You can specify any amount of URLs on the command line. They
will be
fetched in a sequential manner in the specified order.

You can specify a step counter for the ranges to get every Nth
number
or letter:

http://www.numericals.com/file[1-100:10].txt
http://www.letters.com/file[a-z:2].txt

If you specify URL without protocol:// prefix, curl will
attempt to
guess what protocol you might want. It will then default to
HTTP but
try other protocols based on often-used host name prefixes. For
exam-
ple, for host names starting with "ftp." curl will assume you
want to
speak FTP.

curl will do its best to use what you pass to it as a URL. It
is not
trying to validate it as a syntactically correct URL by any
means but
is instead very liberal with what it accepts.

Curl will attempt to re-use connections for multiple file
transfers, so
that getting many files from the same server will not do
multiple con-
nects / handshakes. This improves speed. Of course this is only
done on
files specified on a single command line and cannot be used
between
separate curl invokes.