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: [email protected]
        ReportedBy: [email protected]


--- Comment #0 from Martin Nowak <[email protected]> 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: -------

Reply via email to