Artifactspublic-v0

curl

master
ply4 git calls24 ms293 KiB3 cachedprotocol v2
680 lines18 KiBRaw
1/***************************************************************************
2 * _ _ ____ _
3 * Project ___| | | | _ \| |
4 * / __| | | | |_) | |
5 * | (__| |_| | _ <| |___
6 * \___|\___/|_| \_\_____|
7 *
8 * Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
9 *
10 * This software is licensed as described in the file COPYING, which
11 * you should have received as part of this distribution. The terms
12 * are also available at https://curl.se/docs/copyright.html.
13 *
14 * You may opt to use, copy, modify, merge, publish, distribute and/or sell
15 * copies of the Software, and permit persons to whom the Software is
16 * furnished to do so, under the terms of the COPYING file.
17 *
18 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
19 * KIND, either express or implied.
20 *
21 * SPDX-License-Identifier: curl
22 *
23 ***************************************************************************/
24#include "curl_setup.h"
26#ifdef USE_WINDOWS_SSPI
27#include "curl_sspi.h"
28#endif
30#include "curlx/winapi.h"
31#include "strerror.h"
32#include "curlx/strcopy.h"
34const char *curl_easy_strerror(CURLcode error)
36#ifdef CURLVERBOSE
37 switch(error) {
38 case CURLE_OK:
39 return "No error";
41 case CURLE_UNSUPPORTED_PROTOCOL:
42 return "Unsupported protocol";
44 case CURLE_FAILED_INIT:
45 return "Failed initialization";
47 case CURLE_URL_MALFORMAT:
48 return "URL using bad/illegal format or missing URL";
50 case CURLE_NOT_BUILT_IN:
51 return "A requested feature, protocol or option was not found built-in in"
52 " this libcurl due to a build-time decision.";
54 case CURLE_COULDNT_RESOLVE_PROXY:
55 return "Could not resolve proxy name";
57 case CURLE_COULDNT_RESOLVE_HOST:
58 return "Could not resolve hostname";
60 case CURLE_COULDNT_CONNECT:
61 return "Could not connect to server";
63 case CURLE_WEIRD_SERVER_REPLY:
64 return "Weird server reply";
66 case CURLE_REMOTE_ACCESS_DENIED:
67 return "Access denied to remote resource";
69 case CURLE_FTP_ACCEPT_FAILED:
70 return "FTP: The server failed to connect to data port";
72 case CURLE_FTP_ACCEPT_TIMEOUT:
73 return "FTP: Accepting server connect has timed out";
75 case CURLE_FTP_PRET_FAILED:
76 return "FTP: The server did not accept the PRET command.";
78 case CURLE_FTP_WEIRD_PASS_REPLY:
79 return "FTP: unknown PASS reply";
81 case CURLE_FTP_WEIRD_PASV_REPLY:
82 return "FTP: unknown PASV reply";
84 case CURLE_FTP_WEIRD_227_FORMAT:
85 return "FTP: unknown 227 response format";
87 case CURLE_FTP_CANT_GET_HOST:
88 return "FTP: cannot figure out the host in the PASV response";
90 case CURLE_HTTP2:
91 return "Error in the HTTP2 framing layer";
93 case CURLE_FTP_COULDNT_SET_TYPE:
94 return "FTP: could not set file type";
96 case CURLE_PARTIAL_FILE:
97 return "Transferred a partial file";
99 case CURLE_FTP_COULDNT_RETR_FILE:
100 return "FTP: could not retrieve (RETR failed) the specified file";
102 case CURLE_QUOTE_ERROR:
103 return "Quote command returned error";
105 case CURLE_HTTP_RETURNED_ERROR:
106 return "HTTP response code said error";
108 case CURLE_WRITE_ERROR:
109 return "Failed writing received data to disk/application";
111 case CURLE_UPLOAD_FAILED:
112 return "Upload failed (at start/before it took off)";
114 case CURLE_READ_ERROR:
115 return "Failed to open/read local data from file/application";
117 case CURLE_OUT_OF_MEMORY:
118 return "Out of memory";
120 case CURLE_OPERATION_TIMEDOUT:
121 return "Timeout was reached";
123 case CURLE_FTP_PORT_FAILED:
124 return "FTP: command PORT failed";
126 case CURLE_FTP_COULDNT_USE_REST:
127 return "FTP: command REST failed";
129 case CURLE_RANGE_ERROR:
130 return "Requested range was not delivered by the server";
132 case CURLE_SSL_CONNECT_ERROR:
133 return "SSL connect error";
135 case CURLE_BAD_DOWNLOAD_RESUME:
136 return "Could not resume download";
138 case CURLE_FILE_COULDNT_READ_FILE:
139 return "Could not read a file:// file";
141 case CURLE_LDAP_CANNOT_BIND:
142 return "LDAP: cannot bind";
144 case CURLE_LDAP_SEARCH_FAILED:
145 return "LDAP: search failed";
147 case CURLE_ABORTED_BY_CALLBACK:
148 return "Operation was aborted by an application callback";
150 case CURLE_BAD_FUNCTION_ARGUMENT:
151 return "A libcurl function was given a bad argument";
153 case CURLE_INTERFACE_FAILED:
154 return "Failed binding local connection end";
156 case CURLE_TOO_MANY_REDIRECTS:
157 return "Number of redirects hit maximum amount";
159 case CURLE_UNKNOWN_OPTION:
160 return "An unknown option was passed in to libcurl";
162 case CURLE_SETOPT_OPTION_SYNTAX:
163 return "Malformed option provided in a setopt";
165 case CURLE_GOT_NOTHING:
166 return "Server returned nothing (no headers, no data)";
168 case CURLE_SSL_ENGINE_NOTFOUND:
169 return "SSL crypto engine not found";
171 case CURLE_SSL_ENGINE_SETFAILED:
172 return "Can not set SSL crypto engine as default";
174 case CURLE_SSL_ENGINE_INITFAILED:
175 return "Failed to initialize SSL crypto engine";
177 case CURLE_SEND_ERROR:
178 return "Failed sending data to the peer";
180 case CURLE_RECV_ERROR:
181 return "Failure when receiving data from the peer";
183 case CURLE_SSL_CERTPROBLEM:
184 return "Problem with the local SSL certificate";
186 case CURLE_SSL_CIPHER:
187 return "Could not use specified SSL cipher";
189 case CURLE_PEER_FAILED_VERIFICATION:
190 return "SSL peer certificate or SSH remote key was not OK";
192 case CURLE_SSL_CACERT_BADFILE:
193 return "Problem with the SSL CA cert (path? access rights?)";
195 case CURLE_BAD_CONTENT_ENCODING:
196 return "Unrecognized or bad HTTP Content or Transfer-Encoding";
198 case CURLE_FILESIZE_EXCEEDED:
199 return "Maximum file size exceeded";
201 case CURLE_USE_SSL_FAILED:
202 return "Requested SSL level failed";
204 case CURLE_SSL_SHUTDOWN_FAILED:
205 return "Failed to shut down the SSL connection";
207 case CURLE_SSL_CRL_BADFILE:
208 return "Failed to load CRL file (path? access rights?, format?)";
210 case CURLE_SSL_ISSUER_ERROR:
211 return "Issuer check against peer certificate failed";
213 case CURLE_SEND_FAIL_REWIND:
214 return "Send failed since rewinding of the data stream failed";
216 case CURLE_LOGIN_DENIED:
217 return "Login denied";
219 case CURLE_TFTP_NOTFOUND:
220 return "TFTP: File Not Found";
222 case CURLE_TFTP_PERM:
223 return "TFTP: Access Violation";
225 case CURLE_REMOTE_DISK_FULL:
226 return "Disk full or allocation exceeded";
228 case CURLE_TFTP_ILLEGAL:
229 return "TFTP: Illegal operation";
231 case CURLE_TFTP_UNKNOWNID:
232 return "TFTP: Unknown transfer ID";
234 case CURLE_REMOTE_FILE_EXISTS:
235 return "Remote file already exists";
237 case CURLE_TFTP_NOSUCHUSER:
238 return "TFTP: No such user";
240 case CURLE_REMOTE_FILE_NOT_FOUND:
241 return "Remote file not found";
243 case CURLE_SSH:
244 return "Error in the SSH layer";
246 case CURLE_AGAIN:
247 return "Socket not ready for send/recv";
249 case CURLE_RTSP_CSEQ_ERROR:
250 return "RTSP CSeq mismatch or invalid CSeq";
252 case CURLE_RTSP_SESSION_ERROR:
253 return "RTSP session error";
255 case CURLE_FTP_BAD_FILE_LIST:
256 return "Unable to parse FTP file list";
258 case CURLE_CHUNK_FAILED:
259 return "Chunk callback failed";
261 case CURLE_NO_CONNECTION_AVAILABLE:
262 return "The max connection limit is reached";
264 case CURLE_SSL_PINNEDPUBKEYNOTMATCH:
265 return "SSL public key does not match pinned public key";
267 case CURLE_SSL_INVALIDCERTSTATUS:
268 return "SSL server certificate status verification FAILED";
270 case CURLE_HTTP2_STREAM:
271 return "Stream error in the HTTP/2 framing layer";
273 case CURLE_RECURSIVE_API_CALL:
274 return "API function called from within callback";
276 case CURLE_AUTH_ERROR:
277 return "An authentication function returned an error";
279 case CURLE_HTTP3:
280 return "HTTP/3 error";
282 case CURLE_QUIC_CONNECT_ERROR:
283 return "QUIC connection error";
285 case CURLE_PROXY:
286 return "proxy handshake error";
288 case CURLE_SSL_CLIENTCERT:
289 return "SSL Client Certificate required";
291 case CURLE_UNRECOVERABLE_POLL:
292 return "Unrecoverable error in select/poll";
294 case CURLE_TOO_LARGE:
295 return "A value or data field grew larger than allowed";
297 case CURLE_ECH_REQUIRED:
298 return "ECH attempted but failed";
300 /* error codes not used by current libcurl */
301 default:
302 break;
303 }
304 /*
305 * By using a switch, gcc -Wall will complain about enum values
306 * which do not appear, helping keep this function up-to-date.
307 * By using gcc -Wall -Werror, you cannot forget.
308 *
309 * A table would not have the same benefit. Most compilers will generate
310 * code similar to a table in any case, so there is little performance gain
311 * from a table. Something is broken for the user's application, anyways, so
312 * does it matter how fast it _does not_ work?
313 *
314 * The line number for the error will be near this comment, which is why it
315 * is here, and not at the start of the switch.
316 */
317 return "Unknown error";
318#else
319 if(!error)
320 return "No error";
321 else
322 return "Error";
323#endif
326const char *curl_multi_strerror(CURLMcode error)
328#ifdef CURLVERBOSE
329 switch(error) {
330 case CURLM_CALL_MULTI_PERFORM:
331 return "Please call curl_multi_perform() soon";
333 case CURLM_OK:
334 return "No error";
336 case CURLM_BAD_HANDLE:
337 return "Invalid multi handle";
339 case CURLM_BAD_EASY_HANDLE:
340 return "Invalid easy handle";
342 case CURLM_OUT_OF_MEMORY:
343 return "Out of memory";
345 case CURLM_INTERNAL_ERROR:
346 return "Internal error";
348 case CURLM_BAD_SOCKET:
349 return "Invalid socket argument";
351 case CURLM_UNKNOWN_OPTION:
352 return "Unknown option";
354 case CURLM_ADDED_ALREADY:
355 return "The easy handle is already added to a multi handle";
357 case CURLM_RECURSIVE_API_CALL:
358 return "API function called from within callback";
360 case CURLM_WAKEUP_FAILURE:
361 return "Wakeup is unavailable or failed";
363 case CURLM_BAD_FUNCTION_ARGUMENT:
364 return "A libcurl function was given a bad argument";
366 case CURLM_ABORTED_BY_CALLBACK:
367 return "Operation was aborted by an application callback";
369 case CURLM_UNRECOVERABLE_POLL:
370 return "Unrecoverable error in select/poll";
372 case CURLM_LAST:
373 break;
374 }
376 return "Unknown error";
377#else
378 if(error == CURLM_OK)
379 return "No error";
380 else
381 return "Error";
382#endif
385const char *curl_share_strerror(CURLSHcode error)
387#ifdef CURLVERBOSE
388 switch(error) {
389 case CURLSHE_OK:
390 return "No error";
392 case CURLSHE_BAD_OPTION:
393 return "Unknown share option";
395 case CURLSHE_IN_USE:
396 return "Share currently in use";
398 case CURLSHE_INVALID:
399 return "Invalid share handle";
401 case CURLSHE_NOMEM:
402 return "Out of memory";
404 case CURLSHE_NOT_BUILT_IN:
405 return "Feature not enabled in this library";
407 case CURLSHE_LAST:
408 break;
409 }
411 return "CURLSHcode unknown";
412#else
413 if(error == CURLSHE_OK)
414 return "No error";
415 else
416 return "Error";
417#endif
420const char *curl_url_strerror(CURLUcode error)
422#ifdef CURLVERBOSE
423 switch(error) {
424 case CURLUE_OK:
425 return "No error";
427 case CURLUE_BAD_HANDLE:
428 return "An invalid CURLU pointer was passed as argument";
430 case CURLUE_BAD_PARTPOINTER:
431 return "An invalid 'part' argument was passed as argument";
433 case CURLUE_MALFORMED_INPUT:
434 return "Malformed input to a URL function";
436 case CURLUE_BAD_PORT_NUMBER:
437 return "Port number was not a decimal number between 0 and 65535";
439 case CURLUE_UNSUPPORTED_SCHEME:
440 return "Unsupported URL scheme";
442 case CURLUE_URLDECODE:
443 return "URL decode error, most likely because of rubbish in the input";
445 case CURLUE_OUT_OF_MEMORY:
446 return "A memory function failed";
448 case CURLUE_USER_NOT_ALLOWED:
449 return "Credentials was passed in the URL when prohibited";
451 case CURLUE_UNKNOWN_PART:
452 return "An unknown part ID was passed to a URL API function";
454 case CURLUE_NO_SCHEME:
455 return "No scheme present";
457 case CURLUE_NO_USER:
458 return "No user present";
460 case CURLUE_NO_PASSWORD:
461 return "No password present";
463 case CURLUE_NO_OPTIONS:
464 return "No options present";
466 case CURLUE_NO_HOST:
467 return "No host present";
469 case CURLUE_NO_PORT:
470 return "No port number present";
472 case CURLUE_NO_QUERY:
473 return "No query present";
475 case CURLUE_NO_FRAGMENT:
476 return "No fragment present";
478 case CURLUE_NO_ZONEID:
479 return "No zoneid present";
481 case CURLUE_BAD_LOGIN:
482 return "Bad login";
484 case CURLUE_BAD_IPV6:
485 return "Bad IPv6 address";
487 case CURLUE_BAD_HOSTNAME:
488 return "Bad hostname";
490 case CURLUE_BAD_FILE_URL:
491 return "Bad file:// URL";
493 case CURLUE_BAD_SLASHES:
494 return "Unsupported number of slashes following scheme";
496 case CURLUE_BAD_SCHEME:
497 return "Bad scheme";
499 case CURLUE_BAD_PATH:
500 return "Bad path";
502 case CURLUE_BAD_FRAGMENT:
503 return "Bad fragment";
505 case CURLUE_BAD_QUERY:
506 return "Bad query";
508 case CURLUE_BAD_PASSWORD:
509 return "Bad password";
511 case CURLUE_BAD_USER:
512 return "Bad user";
514 case CURLUE_LACKS_IDN:
515 return "libcurl lacks IDN support";
517 case CURLUE_TOO_LARGE:
518 return "A value or data field is larger than allowed";
520 case CURLUE_BACKSLASH:
521 return "Found a backslash where a forward slash was expected";
523 case CURLUE_LAST:
524 break;
525 }
527 return "CURLUcode unknown";
528#else
529 if(error == CURLUE_OK)
530 return "No error";
531 else
532 return "Error";
533#endif
536#ifdef USE_WINDOWS_SSPI
537/*
538 * Curl_sspi_strerror:
539 * Variant of curlx_strerror if the error code is definitely Windows SSPI.
540 */
541const char *Curl_sspi_strerror(SECURITY_STATUS err, char *buf, size_t buflen)
543#ifdef _WIN32
544 DWORD old_win_err = GetLastError();
545#endif
546 int old_errno = errno;
547 VERBOSE(const char *txt);
549 if(!buflen)
550 return NULL;
552 *buf = '\0';
554#ifdef CURLVERBOSE
555 switch(err) {
556 case SEC_E_OK:
557 txt = "No error";
558 break;
559#define SEC2TXT(sec) case sec: txt = #sec; break
560 SEC2TXT(CRYPT_E_REVOKED);
561 SEC2TXT(CRYPT_E_NO_REVOCATION_DLL);
562 SEC2TXT(CRYPT_E_NO_REVOCATION_CHECK);
563 SEC2TXT(CRYPT_E_REVOCATION_OFFLINE);
564 SEC2TXT(CRYPT_E_NOT_IN_REVOCATION_DATABASE);
565 SEC2TXT(SEC_E_ALGORITHM_MISMATCH);
566 SEC2TXT(SEC_E_BAD_BINDINGS);
567 SEC2TXT(SEC_E_BAD_PKGID);
568 SEC2TXT(SEC_E_BUFFER_TOO_SMALL);
569 SEC2TXT(SEC_E_CANNOT_INSTALL);
570 SEC2TXT(SEC_E_CANNOT_PACK);
571 SEC2TXT(SEC_E_CERT_EXPIRED);
572 SEC2TXT(SEC_E_CERT_UNKNOWN);
573 SEC2TXT(SEC_E_CERT_WRONG_USAGE);
574 SEC2TXT(SEC_E_CONTEXT_EXPIRED);
575 SEC2TXT(SEC_E_CROSSREALM_DELEGATION_FAILURE);
576 SEC2TXT(SEC_E_CRYPTO_SYSTEM_INVALID);
577 SEC2TXT(SEC_E_DECRYPT_FAILURE);
578 SEC2TXT(SEC_E_DELEGATION_POLICY);
579 SEC2TXT(SEC_E_DELEGATION_REQUIRED);
580 SEC2TXT(SEC_E_DOWNGRADE_DETECTED);
581 SEC2TXT(SEC_E_ENCRYPT_FAILURE);
582 SEC2TXT(SEC_E_ILLEGAL_MESSAGE);
583 SEC2TXT(SEC_E_INCOMPLETE_CREDENTIALS);
584 SEC2TXT(SEC_E_INCOMPLETE_MESSAGE);
585 SEC2TXT(SEC_E_INSUFFICIENT_MEMORY);
586 SEC2TXT(SEC_E_INTERNAL_ERROR);
587 SEC2TXT(SEC_E_INVALID_HANDLE);
588 SEC2TXT(SEC_E_INVALID_PARAMETER);
589 SEC2TXT(SEC_E_INVALID_TOKEN);
590 SEC2TXT(SEC_E_ISSUING_CA_UNTRUSTED);
591 SEC2TXT(SEC_E_ISSUING_CA_UNTRUSTED_KDC);
592 SEC2TXT(SEC_E_KDC_CERT_EXPIRED);
593 SEC2TXT(SEC_E_KDC_CERT_REVOKED);
594 SEC2TXT(SEC_E_KDC_INVALID_REQUEST);
595 SEC2TXT(SEC_E_KDC_UNABLE_TO_REFER);
596 SEC2TXT(SEC_E_KDC_UNKNOWN_ETYPE);
597 SEC2TXT(SEC_E_LOGON_DENIED);
598 SEC2TXT(SEC_E_MAX_REFERRALS_EXCEEDED);
599 SEC2TXT(SEC_E_MESSAGE_ALTERED);
600 SEC2TXT(SEC_E_MULTIPLE_ACCOUNTS);
601 SEC2TXT(SEC_E_MUST_BE_KDC);
602 SEC2TXT(SEC_E_NOT_OWNER);
603 SEC2TXT(SEC_E_NO_AUTHENTICATING_AUTHORITY);
604 SEC2TXT(SEC_E_NO_CREDENTIALS);
605 SEC2TXT(SEC_E_NO_IMPERSONATION);
606 SEC2TXT(SEC_E_NO_IP_ADDRESSES);
607 SEC2TXT(SEC_E_NO_KERB_KEY);
608 SEC2TXT(SEC_E_NO_PA_DATA);
609 SEC2TXT(SEC_E_NO_S4U_PROT_SUPPORT);
610 SEC2TXT(SEC_E_NO_TGT_REPLY);
611 SEC2TXT(SEC_E_OUT_OF_SEQUENCE);
612 SEC2TXT(SEC_E_PKINIT_CLIENT_FAILURE);
613 SEC2TXT(SEC_E_PKINIT_NAME_MISMATCH);
614 SEC2TXT(SEC_E_POLICY_NLTM_ONLY);
615 SEC2TXT(SEC_E_QOP_NOT_SUPPORTED);
616 SEC2TXT(SEC_E_REVOCATION_OFFLINE_C);
617 SEC2TXT(SEC_E_REVOCATION_OFFLINE_KDC);
618 SEC2TXT(SEC_E_SECPKG_NOT_FOUND);
619 SEC2TXT(SEC_E_SECURITY_QOS_FAILED);
620 SEC2TXT(SEC_E_SHUTDOWN_IN_PROGRESS);
621 SEC2TXT(SEC_E_SMARTCARD_CERT_EXPIRED);
622 SEC2TXT(SEC_E_SMARTCARD_CERT_REVOKED);
623 SEC2TXT(SEC_E_SMARTCARD_LOGON_REQUIRED);
624 SEC2TXT(SEC_E_STRONG_CRYPTO_NOT_SUPPORTED);
625 SEC2TXT(SEC_E_TARGET_UNKNOWN);
626 SEC2TXT(SEC_E_TIME_SKEW);
627 SEC2TXT(SEC_E_TOO_MANY_PRINCIPALS);
628 SEC2TXT(SEC_E_UNFINISHED_CONTEXT_DELETED);
629 SEC2TXT(SEC_E_UNKNOWN_CREDENTIALS);
630 SEC2TXT(SEC_E_UNSUPPORTED_FUNCTION);
631 SEC2TXT(SEC_E_UNSUPPORTED_PREAUTH);
632 SEC2TXT(SEC_E_UNTRUSTED_ROOT);
633 SEC2TXT(SEC_E_WRONG_CREDENTIAL_HANDLE);
634 SEC2TXT(SEC_E_WRONG_PRINCIPAL);
635 SEC2TXT(SEC_I_COMPLETE_AND_CONTINUE);
636 SEC2TXT(SEC_I_COMPLETE_NEEDED);
637 SEC2TXT(SEC_I_CONTEXT_EXPIRED);
638 SEC2TXT(SEC_I_CONTINUE_NEEDED);
639 SEC2TXT(SEC_I_INCOMPLETE_CREDENTIALS);
640 SEC2TXT(SEC_I_LOCAL_LOGON);
641 SEC2TXT(SEC_I_NO_LSA_CONTEXT);
642 SEC2TXT(SEC_I_RENEGOTIATE);
643 SEC2TXT(SEC_I_SIGNATURE_NEEDED);
644 default:
645 txt = "Unknown error";
646 }
648 if(err == SEC_E_ILLEGAL_MESSAGE) {
649 curl_msnprintf(buf, buflen,
650 "SEC_E_ILLEGAL_MESSAGE (0x%08lx) - This error usually "
651 "occurs when a fatal SSL/TLS alert is received (e.g. "
652 "handshake failed). More detail may be available in "
653 "the Windows System event log.", (unsigned long)err);
654 }
655 else {
656 char msgbuf[256];
657 if(curlx_get_winapi_error((DWORD)err, msgbuf, sizeof(msgbuf)))
658 curl_msnprintf(buf, buflen, "%s (0x%08lx) - %s", txt, (unsigned long)err,
659 msgbuf);
660 else
661 curl_msnprintf(buf, buflen, "%s (0x%08lx)", txt, (unsigned long)err);
662 }
663#else /* CURLVERBOSE */
664 if(err == SEC_E_OK)
665 curlx_strcopy(buf, buflen, STRCONST("No error"));
666 else
667 curlx_strcopy(buf, buflen, STRCONST("Error"));
668#endif
670 if(errno != old_errno)
671 errno = old_errno;
673#ifdef _WIN32
674 if(old_win_err != GetLastError())
675 SetLastError(old_win_err);
676#endif
678 return buf;
680#endif /* USE_WINDOWS_SSPI */
Diagnostics4 git calls · 24 ms
CallStatusSizeTime024 ms
discover200152 B2 ms
git.upload-pack discover
http.response.status_code=200
git.upstream.cf_ray=-
git.upstream.phase=ls-refs
git.upstream.dur_ms=2
git.response.bytes=152
git.server.agent=gitty/1.0
git.server.object_format=sha1
git.server.caps=agent ls-refs fetch object-format
git.server.fetch=shallow filter sideband-all
git.protocol.version=2
git.pkt.frames=8
git.pkt.data=6
git.pkt.flush=2
git.pkt.delim=0
git.pkt.bytes=152
git.pkt.payload.max=34
ls-refs200149 B · hit2 ms
git.upload-pack ls-refs
http.response.status_code=200
git.upstream.cf_ray=-
git.upstream.phase=ls-refs
git.upstream.dur_ms=2
git.response.bytes=149
git.response.cache=HIT
git.response.duration_ms=2
git.protocol.version=2
git.pkt.frames=3
git.pkt.data=2
git.pkt.flush=1
git.pkt.delim=0
git.pkt.bytes=149
git.pkt.payload.max=78
git.ls_refs.count=2
git.ls_refs.head=refs/heads/master
fetchblob:none · deepen 10200287 KiB · hit3 ms
git.upload-pack fetch
http.response.status_code=200
git.upstream.cf_ray=-
git.upstream.phase=fetch
git.upstream.dur_ms=3
git.response.bytes=293470
git.response.cache=HIT
git.response.duration_ms=3
git.fetch.filter=blob:none
git.fetch.filter.requested=tree:0
git.fetch.filter.fallback=blob:none
git.fetch.filter.learned=false
git.fetch.wants=31c911efe5652725e930f4d2e60c9060e5f6646d
git.fetch.haves.count=0
git.fetch.deepen=10
git.fetch.thin_pack=false
git.fetch.ofs_delta=true
git.protocol.version=2
git.pkt.frames=10
git.pkt.data=8
git.pkt.flush=1
git.pkt.delim=1
git.pkt.bytes=293470
git.pkt.payload.max=65516
git.sideband.band1.bytes=293354
git.sideband.band2.bytes=0
git.sideband.band3.bytes=0
git.pack.objects=87
git.pack.bytes=293354
git.pack.ofs_delta=0
git.pack.ref_delta=1
git.pack.chain.max=1
git.pack.trailer=6a646bcda6740bab42e321b51998b52ea15146c0
git.pack.full=86
Open pack map
fetch2005.7 KiB · hit19 ms
git.upload-pack fetch
http.response.status_code=200
git.upstream.cf_ray=-
git.upstream.phase=fetch
git.upstream.dur_ms=19
git.response.bytes=5838
git.response.cache=HIT
git.response.duration_ms=19
git.fetch.wants=6fc801dc612864d03a5662293fdfdd96ea6f138c
git.fetch.haves.count=0
git.fetch.deepen=0
git.fetch.thin_pack=false
git.fetch.ofs_delta=true
git.protocol.version=2
git.pkt.frames=3
git.pkt.data=2
git.pkt.flush=1
git.pkt.delim=0
git.pkt.bytes=5838
git.pkt.payload.max=5817
git.sideband.band1.bytes=5816
git.sideband.band2.bytes=0
git.sideband.band3.bytes=0

Each row is one HTTP round trip ply made to the git server for this page, on one timeline. discover asks what the server speaks, ls-refs lists branch tips, fetch brings objects by id. A hit was served by Workers Cache. Tap a row for its wire details.

Remote
https://5ad2236b39de4c8bd8f6270ea63f3ea9.artifacts.cloudflare.net/git/public-v0/curl.git
Ref
refs/heads/master
Commit
31c911efe5652725e930f4d2e60c9060e5f6646d
cf-ray
a5e15f566a4c725b
Request
738e4346…
Protocol
v2 · sha1
Agent
gitty/1.0
Filter
advertised
Fetch
shallow filter sideband-all
Capabilities
agent ls-refs fetch object-format