source-cooperative / source-cooperative/data.source.coop

[Bug] urllib denied by Cloudflare

Open
#134 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Rust
Stars
24
Forks
6
Avg merge
1h 32m
Merged PRs (30d)
1

Description

Description of Bug:

Cloudflare rejects the urllib user agent.

Steps to Reproduce:

▶ curl -H "User-Agent: Python-urllib/3.6" https://data.source.coop/fused/overture/README.md --verbose 2>&1 | grep "< HTTP/2"
< HTTP/2 403

▶ curl -H "User-Agent: Mozilla/5.0" https://data.source.coop/fused/overture/README.md --verbose 2>&1 | grep "< HTTP/2"
< HTTP/2 200

Expected Behavior:

Requests work as expected.

Actual Behavior:

User receives a 403.

Screenshots:

Additional Context:

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the curl reproductions against data.source.coop/fused/overture/README.md, comparing the Python-urllib/3.6 and Mozilla/5.0 user agents. Trace the proxy's request handling to determine where the urllib request is rejected; done means the reported urllib request succeeds without the 403 response.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
networking
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.