Overview
| Artifact ID: | fa9674f2ce1fc347eb6b14a15d19576e5df5e6d0aa449b0cebf1118c96fcd212 |
|---|---|
| Ticket: | 3165071fffffffffffffffffffffffffffffffff
http::geturl fails for at least 1 RSS feed |
| User & Date: | kjnash on 2022-09-10 12:04:28 |
Changes
- closedate changed to: "2459833.003111"
- closer changed to: "kjnash"
- comment changed to:
The following script fails when run on tcl-8.6.0.0b4: set url {http://www.npr.org/templates/rss/podlayer.php?id=13} set file "[ clock seconds ].xml" set out [ open $file w ] http::geturl $url -channel $out close $out set channel [ tDOM::xmlOpenFile $file ] set doc [ dom parse -channel $channel ] chan close $channel The [dom parse ...] fails because the file retrieved by the [http::geturl ...] is missing a chunk of data starting somewhere around line 67. _____________________________________________________________________________________________ Configuration information: ---------------------------------------- OS: Windows 7 (Version 6.1 (Build 7600)) Tcl: ActiveTcl 8.6.0.0b4 % info tclversion 8.6 % info patchlevel 8.6b1.2 % package require http 2.8.2 % package require tdom 0.8.3 - icomment:
(1) The encoding issue (when the server does not specify content-type or charset) is a duplicate of bug [2998307] and now has a fix. (2) The URL http://www.npr.org/templates/rss/podlayer.php?id=13 no longer exists, and so it is not possible to reproduce the "missing chunk of text" bug. Perhaps this was a bug in Tcl 8.6.0.0b4 - but it seems to have gone away. Or at least I have never seen it in Tcl 8.6 or 8.7 (i.e. it "works for me").
- login: "kjnash"
- mimetype: "text/x-fossil-plain"
- resolution changed to: "Fixed"
- severity changed to: "Minor"
- status changed to: "Closed"