https://bugzilla.wikimedia.org/show_bug.cgi?id=41224
Jesús Martínez Novo <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #3 from Jesús Martínez Novo <[email protected]> 2012-10-20 16:57:45 UTC --- (In reply to comment #2) > curl -v H 'User Agent: Mozilla/5.0 (iPhone; U; CPU like Mac OS X; en) > AppleWebKit/420+ (KHTML, like Gecko) Version/3.0 Mobile/1A543a Safari/419.3' > http://www.wikipedia.org/wiki/ works fine for me > > Is it because the user agent is invalid? I don't know what are you referring to with "invalid". "User Agent:" is not valid. The correct header is "User-Agent:". And the value for that header can be any arbitrary string, so there's apparently no valid/invalid value for that http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.43 Even with your suggested value for user-agent, there's no response. You can test this with any telnet client (preferably not the native telnet command of Windows, use PuTTY instead in RAW mode), connecting to www.wikipedia.org on port 80 and sending the following lines of text (with 2 empty newlines at the end): GET /wiki/ HTTP/1.1 Host: www.wikipedia.org Accept: */* User-Agent: Mozilla/5.0 (iPhone; U; CPU like Mac OS X; en) AppleWebKit/420+ (KHTML, like Gecko) Version/3.0 Mobile/1A543a Safari/419.3 -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
