[Issue 11879] New: missing default User-Agent in std.net.curl
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Jan 7 16:14:46 PST 2014
https://d.puremagic.com/issues/show_bug.cgi?id=11879
Summary: missing default User-Agent in std.net.curl
Product: D
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: Phobos
AssignedTo: nobody at puremagic.com
ReportedBy: code at dawg.eu
--- Comment #0 from Martin Nowak <code at dawg.eu> 2014-01-07 16:14:44 PST ---
The W3C standard says "User agents SHOULD include this field with requests."
http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.43
Some APIs will reject requests without a User-Agent.
Most notably https://api.github.com will return a 403 and the following
message.
Request forbidden by administrative rules. Please make sure your request has a
User-Agent header (http://developer.github.com/v3/#user-agent-required). Check
https://developer.github.com for other possible causes.
I think we should chose a default value for this field like most other
libraries.
http://www.useragentstring.com/pages/Librarielist/
How about "Phobos-std.net.curl/2.064 (libcurl/7.32.0)"?
--
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list