~ubuntu-branches/ubuntu/lucid/curl/lucid-security

« back to all changes in this revision

Viewing changes to docs/libcurl/libcurl-errors.3

  • Committer: Bazaar Package Importer
  • Author(s): Michael Vogt
  • Date: 2009-04-29 11:10:29 UTC
  • mfrom: (3.2.3 sid)
  • Revision ID: james.westby@ubuntu.com-20090429111029-2j5eiyokfw2bw049
Tags: 7.19.4-1ubuntu1
* Merge from debian unstable, remaining changes:
  - Drop build dependencies: stunnel, libdb4.6-dev, libssh2-1-dev
  - Add build-dependency on openssh-server
  - Drop libssh2-1-dev from libcurl4-openssl-dev's Depends.
  - Call automake-1.9 with --add-missing --copy --force
* drop debian/patches/security_CVE-2009-0037.patch 
  - this patch is part of 7.19.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
.\" * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
19
19
.\" * KIND, either express or implied.
20
20
.\" *
21
 
.\" * $Id: libcurl-errors.3,v 1.31 2008-05-12 21:43:28 bagder Exp $
 
21
.\" * $Id: libcurl-errors.3,v 1.35 2008-12-28 21:56:56 bagder Exp $
22
22
.\" **************************************************************************
23
23
.\"
24
 
.TH libcurl-errors 3 "30 Aug 2007" "libcurl 7.17.0" "libcurl errors"
 
24
.TH libcurl-errors 3 "8 Jun 2008" "libcurl 7.19.0" "libcurl errors"
25
25
.SH NAME
26
26
libcurl-errors \- error codes in libcurl
27
27
.SH DESCRIPTION
28
28
This man page includes most, if not all, available error codes in libcurl.
29
 
Why they occur and possibly what you can do to fix the problem.
 
29
Why they occur and possibly what you can do to fix the problem are also included.
30
30
.SH "CURLcode"
31
31
Almost all "easy" interface functions return a CURLcode error code. No matter
32
32
what, using the \fIcurl_easy_setopt(3)\fP option \fICURLOPT_ERRORBUFFER\fP is
33
33
a good idea as it will give you a human readable error string that may offer
34
 
more details about the error cause than just the error code
35
 
does. \fIcurl_easy_strerror(3)\fP can be called to get an error string from a
 
34
more details about the cause of the error than just the error code.
 
35
\fIcurl_easy_strerror(3)\fP can be called to get an error string from a
36
36
given CURLcode number.
37
37
 
38
38
CURLcode is one of the following:
55
55
.IP "CURLE_COULDNT_CONNECT (7)"
56
56
Failed to connect() to host or proxy.
57
57
.IP "CURLE_FTP_WEIRD_SERVER_REPLY (8)"
58
 
After connecting to an FTP server, libcurl expects to get a certain reply
 
58
After connecting to a FTP server, libcurl expects to get a certain reply
59
59
back. This error code implies that it got a strange or bad reply. The given
60
60
remote server is probably not an OK FTP server.
61
61
.IP "CURLE_REMOTE_ACCESS_DENIED (9)"
73
73
.IP "CURLE_FTP_CANT_GET_HOST (15)"
74
74
An internal failure to lookup the host used for the new connection.
75
75
.IP "CURLE_FTP_COULDNT_SET_TYPE (17)"
76
 
Received an error when trying to set the transfer mode to binary or ascii.
 
76
Received an error when trying to set the transfer mode to binary or ASCII.
77
77
.IP "CURLE_PARTIAL_FILE (18)"
78
78
A file transfer was shorter or larger than expected. This happens when the
79
79
server first reports an expected transfer size, and then delivers data that
94
94
returned to libcurl from a write callback.
95
95
.IP "CURLE_UPLOAD_FAILED (25)"
96
96
Failed starting the upload. For FTP, the server typically denied the STOR
97
 
command. The error buffer usually contains the server's explanation to this.
 
97
command. The error buffer usually contains the server's explanation for this.
98
98
(This error code was formerly known as CURLE_FTP_COULDNT_STOR_FILE.)
99
99
.IP "CURLE_READ_ERROR (26)"
100
100
There was a problem reading a local file or an error returned by the read
101
101
callback.
102
102
.IP "CURLE_OUT_OF_MEMORY (27)"
103
103
A memory allocation request failed. This is serious badness and
104
 
things are severely screwed up if this ever occur.
 
104
things are severely screwed up if this ever occurs.
105
105
.IP "CURLE_OPERATION_TIMEDOUT (28)"
106
106
Operation timeout. The specified time-out period was reached according to the
107
107
conditions.
108
108
.IP "CURLE_FTP_PORT_FAILED (30)"
109
 
The FTP PORT command returned error. This mostly happen when you haven't
 
109
The FTP PORT command returned error. This mostly happens when you haven't
110
110
specified a good enough address for libcurl to use. See \fICURLOPT_FTPPORT\fP.
111
111
.IP "CURLE_FTP_COULDNT_USE_REST (31)"
112
112
The FTP REST command returned error. This should never happen if the server is
162
162
.IP "CURLE_RECV_ERROR (56)"
163
163
Failure with receiving network data.
164
164
.IP "CURLE_SSL_CERTPROBLEM (58)"
165
 
problem with the local client certificate
 
165
problem with the local client certificate.
166
166
.IP "CURLE_SSL_CIPHER (59)"
167
 
Couldn't use specified cipher
 
167
Couldn't use specified cipher.
168
168
.IP "CURLE_SSL_CACERT (60)"
169
 
Peer certificate cannot be authenticated with known CA certificates
 
169
Peer certificate cannot be authenticated with known CA certificates.
170
170
.IP "CURLE_BAD_CONTENT_ENCODING (61)"
171
 
Unrecognized transfer encoding
 
171
Unrecognized transfer encoding.
172
172
.IP "CURLE_LDAP_INVALID_URL (62)"
173
 
Invalid LDAP URL
 
173
Invalid LDAP URL.
174
174
.IP "CURLE_FILESIZE_EXCEEDED (63)"
175
 
Maximum file size exceeded
 
175
Maximum file size exceeded.
176
176
.IP "CURLE_USE_SSL_FAILED (64)"
177
 
Requested FTP SSL level failed
 
177
Requested FTP SSL level failed.
178
178
.IP "CURLE_SEND_FAIL_REWIND (65)"
179
179
When doing a send operation curl had to rewind the data to retransmit, but the
180
 
rewinding operation failed
 
180
rewinding operation failed.
181
181
.IP "CURLE_SSL_ENGINE_INITFAILED (66)"
182
 
Initiating the SSL Engine failed
 
182
Initiating the SSL Engine failed.
183
183
.IP "CURLE_LOGIN_DENIED (67)"
184
184
The remote server denied curl to login (Added in 7.13.1)
185
185
.IP "CURLE_TFTP_NOTFOUND (68)"
186
 
File not found on TFTP server
 
186
File not found on TFTP server.
187
187
.IP "CURLE_TFTP_PERM (69)"
188
 
Permission problem on TFTP server
 
188
Permission problem on TFTP server.
189
189
.IP "CURLE_REMOTE_DISK_FULL (70)"
190
 
Out of disk space on the server
 
190
Out of disk space on the server.
191
191
.IP "CURLE_TFTP_ILLEGAL (71)"
192
 
Illegal TFTP operation
 
192
Illegal TFTP operation.
193
193
.IP "CURLE_TFTP_UNKNOWNID (72)"
194
 
Unknown TFTP transfer ID
 
194
Unknown TFTP transfer ID.
195
195
.IP "CURLE_REMOTE_FILE_EXISTS (73)"
196
 
File already exists and will not be overwritten
 
196
File already exists and will not be overwritten.
197
197
.IP "CURLE_TFTP_NOSUCHUSER (74)"
198
 
This error should never be returned by a properly functioning TFTP server
 
198
This error should never be returned by a properly functioning TFTP server.
199
199
.IP "CURLE_CONV_FAILED (75)"
200
 
Character conversion failed
 
200
Character conversion failed.
201
201
.IP "CURLE_CONV_REQD (76)"
202
 
Caller must register conversion callbacks
 
202
Caller must register conversion callbacks.
203
203
.IP "CURLE_SSL_CACERT_BADFILE (77)"
204
204
Problem with reading the SSL CA cert (path? access rights?)
205
205
.IP "CURLE_REMOTE_FILE_NOT_FOUND (78)"
206
 
The resource referenced in the URL does not exist
 
206
The resource referenced in the URL does not exist.
207
207
.IP "CURLE_SSH (79)"
208
 
An unspecified error occurred during the SSH session
 
208
An unspecified error occurred during the SSH session.
209
209
.IP "CURLE_SSL_SHUTDOWN_FAILED (80)"
210
 
Failed to shut down the SSL connection
 
210
Failed to shut down the SSL connection.
211
211
.IP "CURLE_AGAIN (81)"
212
212
Socket is not ready for send/recv wait till it's ready and try again. This
213
213
return code is only returned from \fIcurl_easy_recv(3)\fP and
214
214
\fIcurl_easy_send(3)\fP (Added in 7.18.2)
 
215
.IP "CURLE_SSL_CRL_BADFILE (82)"
 
216
Failed to load CRL file (Added in 7.19.0)
 
217
.IP "CURLE_SSL_ISSUER_ERROR (83)"
 
218
Issuer check failed (Added in 7.19.0)
215
219
.IP "CURLE_OBSOLETE*"
216
 
These error codes will never be returned. They used to be used in an old libcurl
 
220
These error codes will never be returned. They were used in an old libcurl
217
221
version and are currently unused.
218
222
.SH "CURLMcode"
219
223
This is the generic return code used by functions in the libcurl multi