Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
2a510ce1
Kaydet (Commit)
2a510ce1
authored
Tem 13, 2004
tarafından
Andrew M. Kuchling
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Wordsmithing
üst
ee86a66d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
15 deletions
+15
-15
liburllib.tex
Doc/lib/liburllib.tex
+15
-15
No files found.
Doc/lib/liburllib.tex
Dosyayı görüntüle @
2a510ce1
...
@@ -329,21 +329,21 @@ returned data is HTML, you can use the module
...
@@ -329,21 +329,21 @@ returned data is HTML, you can use the module
\refmodule
{
htmllib
}
\refstmodindex
{
htmllib
}
to parse it.
\refmodule
{
htmllib
}
\refstmodindex
{
htmllib
}
to parse it.
\item
\item
The code handling the FTP
\index
{
FTP
}
protocol cannot differentiate
between a
The code handling the FTP
\index
{
FTP
}
protocol cannot differentiate
file and a directory and can lead to unexpected behavior when attempting to
between a file and a directory. This can lead to unexpected behavior
read a URL that points to a file that is not accessible.
when attempting to read a URL that points to a file that is not
If the URL ends in a
\code
{
/
}
then it is assumed to be a
accessible. If the URL ends in a
\code
{
/
}
, it is assumed to refer to
directory and will be handled as such only. But if an attempt to read a file
a directory and will be handled accordingly. But if an attempt to
leads to a 550 error (signaling the URL cannot be found or is not accessible,
read a file leads to a 550 error (meaning the URL cannot be found or
often for permission reasons), then the path is treated as a directory in order
is not accessible, often for permission reasons), then the path is
t
o handle the case of when a directory is specified by a URL but a trailing
t
reated as a directory in order to handle the case when a directory is
\code
{
/
}
is left off.
specified by a URL but the trailing
\code
{
/
}
has been left off. This can
This can lead to the apparent successful fetching of
a file whose read
cause misleading results when you try to fetch
a file whose read
permissions
you do not have by still succeeding by returning the directory
permissions
make it inaccessible; the FTP code will try to read it,
listing for the file from treating it as a directory.
fail with a 550 error, and then perform a directory listing for the
If more fine-grained control is needed, consider using the
\module
{
ftplib
}
unreadable file. If fine-grained control is needed, consider using the
module, subclassing
\class
{
FancyURLOpener
}
, or changing
\var
{_
urlopener
}
to
\module
{
ftplib
}
module, subclassing
\class
{
FancyURLOpener
}
, or changing
meet your needs.
\var
{_
urlopener
}
to
meet your needs.
\item
\item
This module does not support the use of proxies which require
This module does not support the use of proxies which require
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment