Project

Profile

Help

Issue #4878

closed

Some servers deny answering to requests made with pyhon-requests

Added by mdellweg almost 5 years ago. Updated almost 5 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
-
Category:
-
Sprint/Milestone:
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Platform Release:
2.20.0
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Easy Fix, Pulp 2
Sprint:
Sprint 54
Quarter:

Description

For example we have seen 451 (governmental censorship), but we could trace it down to the server denying access when requests was used.
This can be circumvented by setting the User-Agent header field to smth else.

PR available: https://github.com/pulp/pulp/pull/3925

Also available in: Atom PDF