mathiasbynens / mathiasbynens/dotfiles
Consider changing curlrc user agent
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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