Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TLMSP curl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CYBER - Cyber Security
TS 103 523 MSP
TLMSP
TLMSP curl
Commits
bc5954fe
Commit
bc5954fe
authored
24 years ago
by
Daniel Stenberg
Browse files
Options
Downloads
Patches
Plain Diff
updates by SM nttp at iname.com
parent
02f6894a
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
docs/FAQ
+5
-4
5 additions, 4 deletions
docs/FAQ
docs/INSTALL
+5
-5
5 additions, 5 deletions
docs/INSTALL
docs/MANUAL
+32
-28
32 additions, 28 deletions
docs/MANUAL
with
42 additions
and
37 deletions
docs/FAQ
+
5
−
4
View file @
bc5954fe
...
...
@@ -84,10 +84,11 @@ FAQ
1.2 What is libcurl?
libcurl is a reliable, higly portable multiprotocol file transfer library.
libcurl is a reliable and portable library which provides you with an easy
interface to a range of common internet protocols.
Any application is free to use libcurl, even commercial or closed-source
o
nes
.
You can use libcurl for free in your application even if it is commercial
o
r closed-source
.
1.3 What is cURL not?
...
...
@@ -499,7 +500,7 @@ FAQ
available way to do multiple requests was to init/perform/cleanup for each
transfer.
5.4 Does libcurl do Winsock initin
g
on win32 systems?
5.4 Does libcurl do Winsock initi
alizatio
n on win32 systems?
No.
...
...
This diff is collapsed.
Click to expand it.
docs/INSTALL
+
5
−
5
View file @
bc5954fe
...
...
@@ -7,7 +7,7 @@
How To Compile
Curl has been compiled and built on numerous different operating systems. The
way to proceed is mainly divided in two different ways: the unix way or the
way to proceed is mainly divided in two different ways: the unix way or the
windows way.
If you're using Windows (95/98/NT/ME/2000 or whatever) or OS/2, you should
...
...
@@ -183,9 +183,9 @@ Win32
For VC++ 6, there's an included Makefile.vc6 that should be possible
to use out-of-the-box.
Microsoft note: add /Zm200 to the compiler options
,
as the
hugehelp.c
won't compile otherwise due to "too long puts string" or something
like that!
Microsoft note: add /Zm200 to the compiler options
to incre
as
e
the
compiler's memory allocation limit, as the hugehelp.c won't compile
due to "too long puts string".
With SSL:
...
...
@@ -251,7 +251,7 @@ IBM OS/2
PORTS
=====
Just to show off, t
his is a probably incomplete list of known hardware and
T
his is a probably incomplete list of known hardware and
operating systems that curl has been compiled for:
- Ultrix
...
...
This diff is collapsed.
Click to expand it.
docs/MANUAL
+
32
−
28
View file @
bc5954fe
...
...
@@ -15,10 +15,6 @@ SIMPLE USAGE
curl ftp://ftp.funet.fi/README
Get a gopher document from funet's gopher server:
curl gopher://gopher.funet.fi
Get a web page from a server using port 8000:
curl http://www.weirdserver.com:8000/
...
...
@@ -27,6 +23,10 @@ SIMPLE USAGE
curl ftp://cool.haxx.se/
Get a gopher document from funet's gopher server:
curl gopher://gopher.funet.fi
Get the definition of curl from a dictionary:
curl dict://dict.org/m:curl
...
...
@@ -186,7 +186,7 @@ DETAILED INFORMATION
-D/--dump-header option when getting files from both FTP and HTTP, and it
will then store the headers in the specified file.
Store the HTTP headers in a separate file:
Store the HTTP headers in a separate file
(headers.txt in the example)
:
curl --dump-header headers.txt curl.haxx.se
...
...
@@ -245,32 +245,32 @@ POST (HTTP)
-F accepts parameters like -F "name=contents". If you want the contents to
be read from a file, use <@filename> as contents. When specifying a file,
you can also specify
which
content type
the file is, by appending
';type=<mime type>'
to the file name. You can also post contents of several
files in one field. So that
the field name 'coolfiles'
can be
sen
t
three
files with
different content types
in a manner similar to
:
you can also specify
the file
content type
by appending ';type=<mime type>'
to the file name. You can also post
the
contents of several
files in one field.
For example,
the field name 'coolfiles'
is used to
sen
d
three
files, with
different content types
using the following syntax
:
curl -F "coolfiles=@fil1.gif;type=image/gif,fil2.txt,fil3.html" \
http://www.post.com/postit.cgi
If content-type is not specified, curl will try to guess from the
extension
(it only knows a few), or use the previously specified type
(from an earlier
file if several files are specified in a list) or
finally using the defaul
t
type 'text/plain'.
If
the
content-type is not specified, curl will try to guess from the
file
extension
(it only knows a few), or use the previously specified type
(from an earlier
file if several files are specified in a list) or
else i
t
will using the default
type 'text/plain'.
Emulate a fill-in form with -F. Let's say you fill in three fields in a
form. One field is a file name which to post, one field is your name and one
field is a file description. We want to post the file we have written named
"cooltext.txt". To let curl do the posting of this data instead of your
favourite browser, you have to
check out
the HTML of the form page
to get to
know
the names of the input fields. In our example, the input field names are
favourite browser, you have to
read
the HTML
source
of the form page
and find
the names of the input fields. In our example, the input field names are
'file', 'yourname' and 'filedescription'.
curl -F "file=@cooltext.txt" -F "yourname=Daniel" \
-F "filedescription=Cool text file with cool text inside" \
http://www.post.com/postit.cgi
So, t
o send two files in one post you can do it in two ways:
T
o send two files in one post you can do it in two ways:
1. Send multiple files in a single "field" with a single field name:
...
...
@@ -280,11 +280,11 @@ POST (HTTP)
curl -F "docpicture=@dog.gif" -F "catpicture=@cat.gif"
REFERER
REFER
R
ER
A HTTP request has the option to include information about which address
that referred to actual page
, and c
url allows
the user
to specify th
at
referrer to
get specifi
ed on the command line. It is especially useful to
that referred to actual page
. C
url allows
you
to specify th
e
referrer to
be us
ed on the command line. It is especially useful to
fool or trick stupid servers or CGI scripts that rely on that information
being available or contain certain data.
...
...
@@ -353,13 +353,17 @@ COOKIES
Note that by specifying -b you enable the "cookie awareness" and with -L
you can make curl follow a location: (which often is used in combination
with cookies). So that if a site sends cookies and a location, you can
use a non-existing file to trig the cookie awareness like:
use a non-existing file to trig
ger
the cookie awareness like:
curl -L -b empty
-file
www.example.com
curl -L -b empty
.txt
www.example.com
The file to read cookies from must be formatted using plain HTTP headers OR
as netscape's cookie file. Curl will determine what kind it is based on the
file contents.
file contents. In the above command, curl will parse the header and store
the cookies received from www.example.com. curl will send to the server the
stored cookies which match the request as it follows the location. The
file "empty.txt" may be a non-existant file.
PROGRESS METER
...
...
@@ -392,12 +396,12 @@ PROGRESS METER
SPEED LIMIT
Curl
offer
s the user to set
conditions regarding
transfer speed that must
be met
to let the transfer keep going. By using the switch -y and -Y you
can make curl abort transfers if the transfer speed
doesn't exceed your
given
lowest limit for a specified time.
Curl
allow
s the user to set
the
transfer speed
conditions
that must
be met
to let the transfer keep going. By using the switch -y and -Y you
can make curl abort transfers if the transfer speed
is below the specified
lowest limit for a specified time.
To
let
curl ab
andon
download
ing this page if it
s slower than 3000 bytes per
To
have
curl ab
ort the
download
if the speed i
s slower than 3000 bytes per
second for 1 minute, run:
curl -y 3000 -Y 60 www.far-away-site.com
...
...
@@ -610,7 +614,7 @@ RESUMING FILE TRANSFERS
(*1) = This requires that the ftp server supports the non-standard command
SIZE. If it doesn't, curl will say so.
(*2) = This requires that the wb server supports at least HTTP/1.1. If it
(*2) = This requires that the w
e
b server supports at least HTTP/1.1. If it
doesn't, curl will say so.
TIME CONDITIONS
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment