xref: /curl/tests/data/test1538 (revision bc34ebc8)
1<testcase>
2<info>
3<keywords>
4strerror
5verbose logs
6</keywords>
7</info>
8
9#
10# Server-side
11<reply>
12</reply>
13
14# Client-side
15<client>
16<server>
17none
18</server>
19<tool>
20lib%TESTNUMBER
21</tool>
22
23<name>
24libcurl strerror API call tests
25</name>
26<command>
27nothing
28</command>
29</client>
30
31#
32# Verify data after the test has been "shot"
33<verify>
34<stdout>
35e0: No error
36e1: Unsupported protocol
37e2: Failed initialization
38e3: URL using bad/illegal format or missing URL
39e4: A requested feature, protocol or option was not found built-in in this libcurl due to a build-time decision.
40e5: Could not resolve proxy name
41e6: Could not resolve hostname
42e7: Could not connect to server
43e8: Weird server reply
44e9: Access denied to remote resource
45e10: FTP: The server failed to connect to data port
46e11: FTP: unknown PASS reply
47e12: FTP: Accepting server connect has timed out
48e13: FTP: unknown PASV reply
49e14: FTP: unknown 227 response format
50e15: FTP: cannot figure out the host in the PASV response
51e16: Error in the HTTP2 framing layer
52e17: FTP: could not set file type
53e18: Transferred a partial file
54e19: FTP: could not retrieve (RETR failed) the specified file
55e20: Unknown error
56e21: Quote command returned error
57e22: HTTP response code said error
58e23: Failed writing received data to disk/application
59e24: Unknown error
60e25: Upload failed (at start/before it took off)
61e26: Failed to open/read local data from file/application
62e27: Out of memory
63e28: Timeout was reached
64e29: Unknown error
65e30: FTP: command PORT failed
66e31: FTP: command REST failed
67e32: Unknown error
68e33: Requested range was not delivered by the server
69e34: Unknown error
70e35: SSL connect error
71e36: Could not resume download
72e37: Could not read a file:// file
73e38: LDAP: cannot bind
74e39: LDAP: search failed
75e40: Unknown error
76e41: Unknown error
77e42: Operation was aborted by an application callback
78e43: A libcurl function was given a bad argument
79e44: Unknown error
80e45: Failed binding local connection end
81e46: Unknown error
82e47: Number of redirects hit maximum amount
83e48: An unknown option was passed in to libcurl
84e49: Malformed option provided in a setopt
85e50: Unknown error
86e51: Unknown error
87e52: Server returned nothing (no headers, no data)
88e53: SSL crypto engine not found
89e54: Can not set SSL crypto engine as default
90e55: Failed sending data to the peer
91e56: Failure when receiving data from the peer
92e57: Unknown error
93e58: Problem with the local SSL certificate
94e59: Could not use specified SSL cipher
95e60: SSL peer certificate or SSH remote key was not OK
96e61: Unrecognized or bad HTTP Content or Transfer-Encoding
97e62: Unknown error
98e63: Maximum file size exceeded
99e64: Requested SSL level failed
100e65: Send failed since rewinding of the data stream failed
101e66: Failed to initialise SSL crypto engine
102e67: Login denied
103e68: TFTP: File Not Found
104e69: TFTP: Access Violation
105e70: Disk full or allocation exceeded
106e71: TFTP: Illegal operation
107e72: TFTP: Unknown transfer ID
108e73: Remote file already exists
109e74: TFTP: No such user
110e75: Unknown error
111e76: Unknown error
112e77: Problem with the SSL CA cert (path? access rights?)
113e78: Remote file not found
114e79: Error in the SSH layer
115e80: Failed to shut down the SSL connection
116e81: Socket not ready for send/recv
117e82: Failed to load CRL file (path? access rights?, format?)
118e83: Issuer check against peer certificate failed
119e84: FTP: The server did not accept the PRET command.
120e85: RTSP CSeq mismatch or invalid CSeq
121e86: RTSP session error
122e87: Unable to parse FTP file list
123e88: Chunk callback failed
124e89: The max connection limit is reached
125e90: SSL public key does not match pinned public key
126e91: SSL server certificate status verification FAILED
127e92: Stream error in the HTTP/2 framing layer
128e93: API function called from within callback
129e94: An authentication function returned an error
130e95: HTTP/3 error
131e96: QUIC connection error
132e97: proxy handshake error
133e98: SSL Client Certificate required
134e99: Unrecoverable error in select/poll
135e100: A value or data field grew larger than allowed
136e101: ECH attempted but failed
137e102: Unknown error
138m-1: Please call curl_multi_perform() soon
139m0: No error
140m1: Invalid multi handle
141m2: Invalid easy handle
142m3: Out of memory
143m4: Internal error
144m5: Invalid socket argument
145m6: Unknown option
146m7: The easy handle is already added to a multi handle
147m8: API function called from within callback
148m9: Wakeup is unavailable or failed
149m10: A libcurl function was given a bad argument
150m11: Operation was aborted by an application callback
151m12: Unrecoverable error in select/poll
152m13: Unknown error
153s0: No error
154s1: Unknown share option
155s2: Share currently in use
156s3: Invalid share handle
157s4: Out of memory
158s5: Feature not enabled in this library
159s6: CURLSHcode unknown
160u0: No error
161u1: An invalid CURLU pointer was passed as argument
162u2: An invalid 'part' argument was passed as argument
163u3: Malformed input to a URL function
164u4: Port number was not a decimal number between 0 and 65535
165u5: Unsupported URL scheme
166u6: URL decode error, most likely because of rubbish in the input
167u7: A memory function failed
168u8: Credentials was passed in the URL when prohibited
169u9: An unknown part ID was passed to a URL API function
170u10: No scheme part in the URL
171u11: No user part in the URL
172u12: No password part in the URL
173u13: No options part in the URL
174u14: No host part in the URL
175u15: No port part in the URL
176u16: No query part in the URL
177u17: No fragment part in the URL
178u18: No zoneid part in the URL
179u19: Bad file:// URL
180u20: Bad fragment
181u21: Bad hostname
182u22: Bad IPv6 address
183u23: Bad login part
184u24: Bad password
185u25: Bad path
186u26: Bad query
187u27: Bad scheme
188u28: Unsupported number of slashes following scheme
189u29: Bad user
190u30: libcurl lacks IDN support
191u31: A value or data field is larger than allowed
192u32: CURLUcode unknown
193</stdout>
194</verify>
195
196</testcase>
197