mathiasbynens / mathiasbynens/dotfiles

Consider changing curlrc user agent

Open
#542 13 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Shell
Stars
31.5k
Forks
8.4k
PR merge metrics
No merged PRs in 30d

Description

Spent two days hunting down why curlrc'ing a file from sourceforge was downloading a html page rather than a file... the reason? This:

```
# Disguise as IE 9 on Windows 7.
user-agent = "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0)"
```

This causes sourceforge to return the 'your download will begin shortly...' page rather than the file itself.

Contributor guide

No contributing guide indexed for this repository

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 by locating the curlrc configuration and the user-agent setting shown in the issue, then reproduce a SourceForge download with that configuration. Adjust the setting as appropriate and verify that SourceForge returns the requested file rather than an HTML download page.

Written by the indexing model from the issue text.

Assessment

Tech stack
shell
Domain
cli
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.