Opened 11 years ago

Closed 11 years ago

Last modified 8 weeks ago

#40319 closed defect (fixed)

Fix MacPorts user-agent to conform to RFC 2616

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: macports-tickets@…
Priority: Normal Milestone: MacPorts 2.3.0
Component: base Version: 2.2.0
Keywords: Cc: cooljeanius (Eric Gallager)
Port:

Description

The MacPorts user-agent is e.g.:

MacPorts 2.2.0 libcurl/7.24.0

RFC 2616 section 14.43 defines the user agent as:

User-Agent     = "User-Agent" ":" 1*( product | comment )

RFC 2616 section 3.8 defines product as:

product         = token ["/" product-version]
product-version = token

It gives the following examples:

User-Agent: CERN-LineMode/2.15 libwww/2.17b3
Server: Apache/0.8.4

So the MacPorts user-agent should be changed to e.g.:

MacPorts/2.2.0 libcurl/7.24.0

Change History (4)

comment:1 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Milestone: MacPorts Future
Resolution: fixed
Status: newclosed
Version: 2.2.0

comment:2 Changed 11 years ago by cooljeanius (Eric Gallager)

Cc: egall@… added

Cc Me!

comment:3 Changed 11 years ago by jmroot (Joshua Root)

Milestone: MacPorts FutureMacPorts 2.3.0

comment:4 Changed 8 weeks ago by Xavier Hsinyuan <me@…>

In c39ccfb594ae91ae24c6f93510bffac7b28c4979/macports-base (master):

Set a user-agent for curl isnewer

Fix sync warning about checking update failed due to rejected
connection without a user-agent on some mirrors.

The user-agent for curl isnewer is conform #40319.

Closes: #70973

Note: See TracTickets for help on using tickets.