|
2008-03-12
| ||
| 16:39 | • Closed ticket [1560506fff]: http package chokes on valid url plus 6 other ch... artifact: fc68c4465a user: hobbs | |
| 02:31 | • Ticket [1560506fff]: 5 changes artifact: 4a25c3a30e user: dgp | |
|
2007-06-11
| ||
| 04:27 | • Ticket [1560506fff]: 4 changes artifact: e278e1adb4 user: hobbs | |
|
2007-02-09
| ||
| 06:17 | • Ticket [1560506fff]: 5 changes artifact: 704fbc53b7 user: hobbs | |
|
2006-10-07
| ||
| 01:55 | • Ticket [1560506fff]: 4 changes artifact: c114b9768d user: dgp | |
| 01:39 | • Ticket [1560506fff]: 6 changes artifact: 482162046a user: hobbs | |
|
2006-10-06
| ||
| 20:15 | • Open ticket [1560506fff]. artifact: b2d2f8bd82 user: dgp | |
| 12:58 | • Closed ticket [1560506fff]. artifact: abdb5f6369 user: hobbs | |
|
2006-09-18
| ||
| 23:16 | • Ticket [1560506fff]: 6 changes artifact: 82a3537d50 user: hobbs | |
| 06:36 | • New ticket [1560506fff]. artifact: 2c4d1e639d user: wart | |
http package chokes on valid url
Closed / Fixed1560506fffffffffffffffffffffffffffffffffCreated 20 years agoUpdated 19 years ago
Descriptionplain2006-09-18 06:36:39
After upgrading to Fedora Core 5 with tcl 8.4.13 and http 2.5.2, I noticed the following now fails: $ tclsh % package require http 2.5.2 % http::geturl \ http://quote.yahoo.com/d/quotes.csv?s=^GSPC&f=sl1d1t1c1ohgv&e=.csv Illegal characters in URL path % http::geturl http://quote.yahoo.com/d/quotes.csv?s=RHAT&f=sl1d1t1c1ohgv&e=.csv ::http::1 The regexp in the http package seems to think it's not a valid url due the ^ character. Why is this now invalid?
hobbsplain2006-09-18 23:16:14
Logged In: YES user_id=72656 Strictly speaking, according to RFC 3986, it is invalid to have the ^ unencoded in the above URL. This change was added by DKF 2005-11-18 for 8.4.12. I'll leave it to him to reconsider if this should be allowed to float through, as most servers will probably respond correctly.
hobbsplain2006-10-06 12:58:38
Logged In: YES user_id=72656 I have added a private $::http::strict that manages whether the RFC 3986 validation is done. It is 0 for 8.4.14 and 1 for 8.5a5. That maintains 8.4 compat, and makes 8.5 more strict.
dgpplain2006-10-06 20:15:59
Logged In: YES user_id=80530 The package "http 2.5.3" should be the same, no matter whether it is bundled with Tcl 8.4 or Tcl 8.5. If you want the two distributions to differ on the setting of ::http::strict in their bundled http packages, then I suggest bumping the version distributed with 8.5 to "http 2.6.0". Raising prio since releases are imminent. Worth observing this problem would go away if the http package was moved from Tcl to tcllib.
hobbsplain2006-10-07 01:39:47
Logged In: YES user_id=72656 2.5.3 is new for both already, but it is 8.5 that will inevitably have to change along with the other addendums for HTTP 1.1 and such. I am reducing it to 8 as it does need to be addressed for 8.5, but that's not "stable" yet. For 8.5, it would change to a -strict option to geturl instead (along with the other needed options for HTTP 1.1 support that already exist in tclvfs http 2.6).
dgpplain2006-10-07 01:55:40
Logged In: YES user_id=80530 Sometimes I miss the obvious... We should bundle http 2.6a1 with Tcl 8.5a5 with the aim of bundling "http 2.6.0" with Tcl 8.5.0.
hobbsplain2007-02-09 06:17:07
Logged In: YES user_id=72656 Originator: NO Passing to Pat ... would it be possible to brush up the existing http 2.6 as 2.6a1 for 8.5a5? That would need to be done by end of Feb, 2007.
hobbsplain2007-06-11 04:27:01
Logged In: YES user_id=72656 Originator: NO ping
dgpplain2008-03-12 02:31:29
Logged In: YES user_id=80530 Originator: NO hobbs on this case now
hobbsplain2008-03-12 16:39:45
Logged In: YES user_id=72656 Originator: NO -strict added to http 2.7 for core 8.5.2, inheriting from $::http::strict for global override.
Log in (anonymous is fine) to add a comment.