Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

An Ada exception is when a routine gets in trouble and says 'Beam me up, Scotty'.


devel / comp.lang.tcl / How to deal with HTTP redirects to same URL

SubjectAuthor
* How to deal with HTTP redirects to same URLAlexandru
`* Re: How to deal with HTTP redirects to same URLSchelte
 `* Re: How to deal with HTTP redirects to same URLAlexandru
  `* Re: How to deal with HTTP redirects to same URLSchelte
   +* Re: How to deal with HTTP redirects to same URLAlexandru
   |`* Re: How to deal with HTTP redirects to same URLAlexandru
   | `* Re: How to deal with HTTP redirects to same URLSchelte
   |  `* Re: How to deal with HTTP redirects to same URLAlexandru
   |   `* Re: How to deal with HTTP redirects to same URLAlexandru
   |    `* Re: How to deal with HTTP redirects to same URLAlexandru
   |     `* Re: How to deal with HTTP redirects to same URLSchelte
   |      `* Re: How to deal with HTTP redirects to same URLAlexandru
   |       `* Re: How to deal with HTTP redirects to same URLAlexandru
   |        `* Re: How to deal with HTTP redirects to same URLSchelte
   |         `* Re: How to deal with HTTP redirects to same URLAlexandru
   |          +* Re: How to deal with HTTP redirects to same URLSchelte
   |          |`* Re: How to deal with HTTP redirects to same URLAlexandru
   |          | `* Re: How to deal with HTTP redirects to same URLsaitology9
   |          |  `- Re: How to deal with HTTP redirects to same URLAlexandru
   |          `* Re: How to deal with HTTP redirects to same URLSchelte
   |           +- Re: How to deal with HTTP redirects to same URLAlexandru
   |           `* Re: How to deal with HTTP redirects to same URLAlexandru
   |            `* Re: How to deal with HTTP redirects to same URLsaitology9
   |             `* Re: How to deal with HTTP redirects to same URLAlexandru
   |              `* Re: How to deal with HTTP redirects to same URLsaitology9
   |               `* Re: How to deal with HTTP redirects to same URLAlexandru
   |                `* Re: How to deal with HTTP redirects to same URLSchelte
   |                 `* Re: How to deal with HTTP redirects to same URLAlexandru
   |                  `* Re: How to deal with HTTP redirects to same URLSchelte
   |                   `* Re: How to deal with HTTP redirects to same URLAlexandru
   |                    `* Re: How to deal with HTTP redirects to same URLSchelte
   |                     `* Re: How to deal with HTTP redirects to same URLsaitology9
   |                      `* Re: How to deal with HTTP redirects to same URLSchelte
   |                       `- Re: How to deal with HTTP redirects to same URLsaitology9
   `- Re: How to deal with HTTP redirects to same URLsaitology9

Pages:12
How to deal with HTTP redirects to same URL

<74bef483-fc9a-4a94-b3bf-ed4ce3208d8en@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=22280&group=comp.lang.tcl#22280

  copy link   Newsgroups: comp.lang.tcl
X-Received: by 2002:a05:6214:8ed:b0:62d:eaa2:9a36 with SMTP id dr13-20020a05621408ed00b0062deaa29a36mr343464qvb.3.1686573141787;
Mon, 12 Jun 2023 05:32:21 -0700 (PDT)
X-Received: by 2002:ac8:59ce:0:b0:3f9:d266:7bc8 with SMTP id
f14-20020ac859ce000000b003f9d2667bc8mr2986844qtf.3.1686573141606; Mon, 12 Jun
2023 05:32:21 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!newsfeed.hasname.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.tcl
Date: Mon, 12 Jun 2023 05:32:21 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=77.180.37.252; posting-account=glPZ8goAAADztwA3kVEZPMKXCGydx5DU
NNTP-Posting-Host: 77.180.37.252
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <74bef483-fc9a-4a94-b3bf-ed4ce3208d8en@googlegroups.com>
Subject: How to deal with HTTP redirects to same URL
From: alexandru.dadalau@meshparts.de (Alexandru)
Injection-Date: Mon, 12 Jun 2023 12:32:21 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 1423
 by: Alexandru - Mon, 12 Jun 2023 12:32 UTC

Hello,

I'm trying to find a solution in the Web to this issue, when a server sends an HTTL response code 303 (redirect) and the new location (URL) is identical to the original location. Until now I couldn't find a solution in the Web. But obviously there must be a solution since my web browser can handle this.
Any ideas on your side?

Many thanks
Alexandru

Re: How to deal with HTTP redirects to same URL

<nnd$3ee69abe$05b36f81@d320170246059d17>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=22282&group=comp.lang.tcl#22282

  copy link   Newsgroups: comp.lang.tcl
Date: Mon, 12 Jun 2023 16:02:17 +0200
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.11.0
Subject: Re: How to deal with HTTP redirects to same URL
Content-Language: en-US
Newsgroups: comp.lang.tcl
References: <74bef483-fc9a-4a94-b3bf-ed4ce3208d8en@googlegroups.com>
From: nospam@wanadoo.nl (Schelte)
In-Reply-To: <74bef483-fc9a-4a94-b3bf-ed4ce3208d8en@googlegroups.com>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Message-ID: <nnd$3ee69abe$05b36f81@d320170246059d17>
Organization: KPN B.V.
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!newsreader4.netcologne.de!news.netcologne.de!peer01.ams1!peer.ams1.xlned.com!news.xlned.com!peer03.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!feed.abavia.com!abe004.abavia.com!abp001.abavia.com!news.kpn.nl!not-for-mail
Lines: 17
Injection-Date: Mon, 12 Jun 2023 16:02:17 +0200
Injection-Info: news.kpn.nl; mail-complaints-to="abuse@kpn.com"
X-Received-Bytes: 1747
 by: Schelte - Mon, 12 Jun 2023 14:02 UTC

On 12/06/2023 14:32, Alexandru wrote:
> I'm trying to find a solution in the Web to this issue, when a server sends an HTTL response code 303 (redirect) and the new location (URL) is identical to the original location. Until now I couldn't find a solution in the Web. But obviously there must be a solution since my web browser can handle this.
> Any ideas on your side?
>
Check carefully. Are the URLs really exactly the same? I remember I had
to look twice when I fetched a URL like "http://www.tcl.tk/about" and
got a redirect to "/about/. The trailing slash makes a difference.

The only way a browser can "handle" a redirect to the exact same URL it
requested is by displaying a page that says something like "The page
isn’t redirecting properly". But I guess that's not what you are
referring to.

Schelte.

Re: How to deal with HTTP redirects to same URL

<91a9f9ea-a72d-415d-8d08-fd1a29ec58f1n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=22284&group=comp.lang.tcl#22284

  copy link   Newsgroups: comp.lang.tcl
X-Received: by 2002:a05:6214:9c3:b0:62d:e657:57d2 with SMTP id dp3-20020a05621409c300b0062de65757d2mr529945qvb.2.1686581159506;
Mon, 12 Jun 2023 07:45:59 -0700 (PDT)
X-Received: by 2002:a05:622a:1a25:b0:3f9:d266:7bc9 with SMTP id
f37-20020a05622a1a2500b003f9d2667bc9mr3093251qtb.11.1686581159149; Mon, 12
Jun 2023 07:45:59 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.tcl
Date: Mon, 12 Jun 2023 07:45:58 -0700 (PDT)
In-Reply-To: <nnd$3ee69abe$05b36f81@d320170246059d17>
Injection-Info: google-groups.googlegroups.com; posting-host=77.180.37.252; posting-account=glPZ8goAAADztwA3kVEZPMKXCGydx5DU
NNTP-Posting-Host: 77.180.37.252
References: <74bef483-fc9a-4a94-b3bf-ed4ce3208d8en@googlegroups.com> <nnd$3ee69abe$05b36f81@d320170246059d17>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <91a9f9ea-a72d-415d-8d08-fd1a29ec58f1n@googlegroups.com>
Subject: Re: How to deal with HTTP redirects to same URL
From: alexandru.dadalau@meshparts.de (Alexandru)
Injection-Date: Mon, 12 Jun 2023 14:45:59 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 2861
 by: Alexandru - Mon, 12 Jun 2023 14:45 UTC

Schelte schrieb am Montag, 12. Juni 2023 um 16:02:23 UTC+2:
> On 12/06/2023 14:32, Alexandru wrote:
> > I'm trying to find a solution in the Web to this issue, when a server sends an HTTL response code 303 (redirect) and the new location (URL) is identical to the original location. Until now I couldn't find a solution in the Web. But obviously there must be a solution since my web browser can handle this.
> > Any ideas on your side?
> >
> Check carefully. Are the URLs really exactly the same? I remember I had
> to look twice when I fetched a URL like "http://www.tcl.tk/about" and
> got a redirect to "/about/. The trailing slash makes a difference.
>
> The only way a browser can "handle" a redirect to the exact same URL it
> requested is by displaying a page that says something like "The page
> isn’t redirecting properly". But I guess that's not what you are
> referring to.
>
>
> Schelte.

I double checked, the URLs are identical, including the trailing slash.
This is the URL and the siplified code:

set url https://www.duma-bandzink.com/de/
set token [::http::geturl $url -binary 1]
if {[string index $ncode 0]==3} {
array set meta $state(meta)
if {![info exists meta(Location)] && ![info exists meta(location)]} {
http::cleanup $token
return
}
if {[info exists meta(Location)]} {
set url2 $meta(Location)
} else {
set url2 $meta(location)
}
http::cleanup $token
puts "Old: $url"
puts "New: $url2"
}

Just run the code. Thanks.

Re: How to deal with HTTP redirects to same URL

<nnd$00adc8be$2a42f6f5@32b827176cd38e0f>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=22285&group=comp.lang.tcl#22285

  copy link   Newsgroups: comp.lang.tcl
Date: Mon, 12 Jun 2023 17:37:51 +0200
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.11.0
Subject: Re: How to deal with HTTP redirects to same URL
Content-Language: en-US
Newsgroups: comp.lang.tcl
References: <74bef483-fc9a-4a94-b3bf-ed4ce3208d8en@googlegroups.com>
<nnd$3ee69abe$05b36f81@d320170246059d17>
<91a9f9ea-a72d-415d-8d08-fd1a29ec58f1n@googlegroups.com>
From: nospam@wanadoo.nl (Schelte)
In-Reply-To: <91a9f9ea-a72d-415d-8d08-fd1a29ec58f1n@googlegroups.com>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Message-ID: <nnd$00adc8be$2a42f6f5@32b827176cd38e0f>
Organization: KPN B.V.
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!newsreader4.netcologne.de!news.netcologne.de!peer01.ams1!peer.ams1.xlned.com!news.xlned.com!peer01.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!feed.abavia.com!abe005.abavia.com!abp002.abavia.com!news.kpn.nl!not-for-mail
Lines: 21
Injection-Date: Mon, 12 Jun 2023 17:37:51 +0200
Injection-Info: news.kpn.nl; mail-complaints-to="abuse@kpn.com"
X-Received-Bytes: 1704
 by: Schelte - Mon, 12 Jun 2023 15:37 UTC

On 12/06/2023 16:45, Alexandru wrote:
> I double checked, the URLs are identical, including the trailing slash.
> This is the URL and the siplified code:
>
The code doesn't run as presented. But indeed the URLs are the same.
However, the first response also returns some cookies. Repeating the
request with those cookies results in a 200 OK.

My www package (https://chiselapp.com/user/schelte/repository/www/index)
takes care of redirects and cookies. Fetching the URL that way (you'll
need the latest check-in) works correctly:

package require www
catch {www get https://www.duma-bandzink.com/de/} data info
dict get $info status line
=> HTTP/1.1 200 OK

Schelte.

Re: How to deal with HTTP redirects to same URL

<bcedf09e-d2cf-4f69-8e3e-a3ae91530a2dn@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=22286&group=comp.lang.tcl#22286

  copy link   Newsgroups: comp.lang.tcl
X-Received: by 2002:a05:6214:a4a:b0:62d:e8b9:11c1 with SMTP id ee10-20020a0562140a4a00b0062de8b911c1mr461347qvb.2.1686587438571;
Mon, 12 Jun 2023 09:30:38 -0700 (PDT)
X-Received: by 2002:ad4:4e66:0:b0:626:205c:2a14 with SMTP id
ec6-20020ad44e66000000b00626205c2a14mr1249341qvb.5.1686587438282; Mon, 12 Jun
2023 09:30:38 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.tcl
Date: Mon, 12 Jun 2023 09:30:37 -0700 (PDT)
In-Reply-To: <nnd$00adc8be$2a42f6f5@32b827176cd38e0f>
Injection-Info: google-groups.googlegroups.com; posting-host=77.180.37.252; posting-account=glPZ8goAAADztwA3kVEZPMKXCGydx5DU
NNTP-Posting-Host: 77.180.37.252
References: <74bef483-fc9a-4a94-b3bf-ed4ce3208d8en@googlegroups.com>
<nnd$3ee69abe$05b36f81@d320170246059d17> <91a9f9ea-a72d-415d-8d08-fd1a29ec58f1n@googlegroups.com>
<nnd$00adc8be$2a42f6f5@32b827176cd38e0f>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <bcedf09e-d2cf-4f69-8e3e-a3ae91530a2dn@googlegroups.com>
Subject: Re: How to deal with HTTP redirects to same URL
From: alexandru.dadalau@meshparts.de (Alexandru)
Injection-Date: Mon, 12 Jun 2023 16:30:38 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 2190
 by: Alexandru - Mon, 12 Jun 2023 16:30 UTC

Schelte schrieb am Montag, 12. Juni 2023 um 17:37:56 UTC+2:
> On 12/06/2023 16:45, Alexandru wrote:
> > I double checked, the URLs are identical, including the trailing slash.
> > This is the URL and the siplified code:
> >
> The code doesn't run as presented. But indeed the URLs are the same.
> However, the first response also returns some cookies. Repeating the
> request with those cookies results in a 200 OK.
>
> My www package (https://chiselapp.com/user/schelte/repository/www/index)
> takes care of redirects and cookies. Fetching the URL that way (you'll
> need the latest check-in) works correctly:
>
> package require www
> catch {www get https://www.duma-bandzink.com/de/} data info
> dict get $info status line
> => HTTP/1.1 200 OK
>
>
> Schelte.

Hi Shelte,

Many thanks, the cookies could be the cause indeed.
I'll take a look at your code.

Regards
Alexandru

Re: How to deal with HTTP redirects to same URL

<86531c25-6dbc-4f7c-b88f-aea2d2f9d601n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=22287&group=comp.lang.tcl#22287

  copy link   Newsgroups: comp.lang.tcl
X-Received: by 2002:ad4:4e87:0:b0:621:186d:2dc5 with SMTP id dy7-20020ad44e87000000b00621186d2dc5mr1043931qvb.6.1686588064413;
Mon, 12 Jun 2023 09:41:04 -0700 (PDT)
X-Received: by 2002:ad4:4e22:0:b0:62d:d4f7:c530 with SMTP id
dm2-20020ad44e22000000b0062dd4f7c530mr906326qvb.0.1686588064061; Mon, 12 Jun
2023 09:41:04 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.tcl
Date: Mon, 12 Jun 2023 09:41:03 -0700 (PDT)
In-Reply-To: <bcedf09e-d2cf-4f69-8e3e-a3ae91530a2dn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=77.180.37.252; posting-account=glPZ8goAAADztwA3kVEZPMKXCGydx5DU
NNTP-Posting-Host: 77.180.37.252
References: <74bef483-fc9a-4a94-b3bf-ed4ce3208d8en@googlegroups.com>
<nnd$3ee69abe$05b36f81@d320170246059d17> <91a9f9ea-a72d-415d-8d08-fd1a29ec58f1n@googlegroups.com>
<nnd$00adc8be$2a42f6f5@32b827176cd38e0f> <bcedf09e-d2cf-4f69-8e3e-a3ae91530a2dn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <86531c25-6dbc-4f7c-b88f-aea2d2f9d601n@googlegroups.com>
Subject: Re: How to deal with HTTP redirects to same URL
From: alexandru.dadalau@meshparts.de (Alexandru)
Injection-Date: Mon, 12 Jun 2023 16:41:04 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 2517
 by: Alexandru - Mon, 12 Jun 2023 16:41 UTC

Alexandru schrieb am Montag, 12. Juni 2023 um 18:30:40 UTC+2:
> Schelte schrieb am Montag, 12. Juni 2023 um 17:37:56 UTC+2:
> > On 12/06/2023 16:45, Alexandru wrote:
> > > I double checked, the URLs are identical, including the trailing slash.
> > > This is the URL and the siplified code:
> > >
> > The code doesn't run as presented. But indeed the URLs are the same.
> > However, the first response also returns some cookies. Repeating the
> > request with those cookies results in a 200 OK.
> >
> > My www package (https://chiselapp.com/user/schelte/repository/www/index)
> > takes care of redirects and cookies. Fetching the URL that way (you'll
> > need the latest check-in) works correctly:
> >
> > package require www
> > catch {www get https://www.duma-bandzink.com/de/} data info
> > dict get $info status line
> > => HTTP/1.1 200 OK
> >
> >
> > Schelte.
> Hi Shelte,
>
> Many thanks, the cookies could be the cause indeed.
> I'll take a look at your code.
>
> Regards
> Alexandru

Hi Schelte,

How where should I save your package?
I unpacked the ZIP archive to C:\Tcl\lib\www but package require www fails...

Re: How to deal with HTTP redirects to same URL

<u67ij3$35rb6$2@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=22289&group=comp.lang.tcl#22289

  copy link   Newsgroups: comp.lang.tcl
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: saitology9@gmail.com (saitology9)
Newsgroups: comp.lang.tcl
Subject: Re: How to deal with HTTP redirects to same URL
Date: Mon, 12 Jun 2023 12:53:53 -0400
Organization: A noiseless patient Spider
Lines: 16
Message-ID: <u67ij3$35rb6$2@dont-email.me>
References: <74bef483-fc9a-4a94-b3bf-ed4ce3208d8en@googlegroups.com>
<nnd$3ee69abe$05b36f81@d320170246059d17>
<91a9f9ea-a72d-415d-8d08-fd1a29ec58f1n@googlegroups.com>
<nnd$00adc8be$2a42f6f5@32b827176cd38e0f>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 12 Jun 2023 16:53:55 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="7e1f3cc4fe7b9e2111991894257f1c4d";
logging-data="3337574"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19XDzxWMPAdJfrvRZqjzybs"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.11.0
Cancel-Lock: sha1:UXbgwMn5e1C9NcPrVQbGUrs2Qp4=
Content-Language: en-US
In-Reply-To: <nnd$00adc8be$2a42f6f5@32b827176cd38e0f>
 by: saitology9 - Mon, 12 Jun 2023 16:53 UTC

On 6/12/2023 11:37 AM, Schelte wrote:
> On 12/06/2023 16:45, Alexandru wrote:
>> I double checked, the URLs are identical, including the trailing slash.
>> This is the URL and the siplified code:
>>
> The code doesn't run as presented. But indeed the URLs are the same.
> However, the first response also returns some cookies. Repeating the
> request with those cookies results in a 200 OK.
>

I see that the cookies are there to make sure the GDPR notice gets
displayed and the user is forced to act on it.

Re: How to deal with HTTP redirects to same URL

<nnd$73cb4224$4036d484@efa2e9b0bbde3054>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=22294&group=comp.lang.tcl#22294

  copy link   Newsgroups: comp.lang.tcl
Date: Mon, 12 Jun 2023 21:27:15 +0200
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.11.0
Subject: Re: How to deal with HTTP redirects to same URL
Content-Language: en-US
Newsgroups: comp.lang.tcl
References: <74bef483-fc9a-4a94-b3bf-ed4ce3208d8en@googlegroups.com>
<nnd$3ee69abe$05b36f81@d320170246059d17>
<91a9f9ea-a72d-415d-8d08-fd1a29ec58f1n@googlegroups.com>
<nnd$00adc8be$2a42f6f5@32b827176cd38e0f>
<bcedf09e-d2cf-4f69-8e3e-a3ae91530a2dn@googlegroups.com>
<86531c25-6dbc-4f7c-b88f-aea2d2f9d601n@googlegroups.com>
From: nospam@wanadoo.nl (Schelte)
In-Reply-To: <86531c25-6dbc-4f7c-b88f-aea2d2f9d601n@googlegroups.com>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Message-ID: <nnd$73cb4224$4036d484@efa2e9b0bbde3054>
Organization: KPN B.V.
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!newsreader4.netcologne.de!news.netcologne.de!peer02.ams1!peer.ams1.xlned.com!news.xlned.com!peer03.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!feed.abavia.com!abe004.abavia.com!abp003.abavia.com!news.kpn.nl!not-for-mail
Lines: 12
Injection-Date: Mon, 12 Jun 2023 21:27:15 +0200
Injection-Info: news.kpn.nl; mail-complaints-to="abuse@kpn.com"
X-Received-Bytes: 1553
 by: Schelte - Mon, 12 Jun 2023 19:27 UTC

On 12/06/2023 18:41, Alexandru wrote:
> How where should I save your package?
> I unpacked the ZIP archive to C:\Tcl\lib\www but package require www fails...

As it is a Tcl module, you have to put it in one of the directories
returned from [tcl::tm::path list], or add the directory where you put
it to that list, using [tcl::tm::path add C:/Tcl/lib/www].

Schelte.

Re: How to deal with HTTP redirects to same URL

<01dd224d-4043-4ef3-bbf3-5e7a62d985ean@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=22299&group=comp.lang.tcl#22299

  copy link   Newsgroups: comp.lang.tcl
X-Received: by 2002:a05:620a:2612:b0:75d:fefe:6e2b with SMTP id z18-20020a05620a261200b0075dfefe6e2bmr3572399qko.2.1686663131119;
Tue, 13 Jun 2023 06:32:11 -0700 (PDT)
X-Received: by 2002:a05:622a:1a90:b0:3f5:30fd:a2d1 with SMTP id
s16-20020a05622a1a9000b003f530fda2d1mr4184013qtc.10.1686663130851; Tue, 13
Jun 2023 06:32:10 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border-2.nntp.ord.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.tcl
Date: Tue, 13 Jun 2023 06:32:10 -0700 (PDT)
In-Reply-To: <nnd$73cb4224$4036d484@efa2e9b0bbde3054>
Injection-Info: google-groups.googlegroups.com; posting-host=77.12.5.153; posting-account=glPZ8goAAADztwA3kVEZPMKXCGydx5DU
NNTP-Posting-Host: 77.12.5.153
References: <74bef483-fc9a-4a94-b3bf-ed4ce3208d8en@googlegroups.com>
<nnd$3ee69abe$05b36f81@d320170246059d17> <91a9f9ea-a72d-415d-8d08-fd1a29ec58f1n@googlegroups.com>
<nnd$00adc8be$2a42f6f5@32b827176cd38e0f> <bcedf09e-d2cf-4f69-8e3e-a3ae91530a2dn@googlegroups.com>
<86531c25-6dbc-4f7c-b88f-aea2d2f9d601n@googlegroups.com> <nnd$73cb4224$4036d484@efa2e9b0bbde3054>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <01dd224d-4043-4ef3-bbf3-5e7a62d985ean@googlegroups.com>
Subject: Re: How to deal with HTTP redirects to same URL
From: alexandru.dadalau@meshparts.de (Alexandru)
Injection-Date: Tue, 13 Jun 2023 13:32:11 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 21
 by: Alexandru - Tue, 13 Jun 2023 13:32 UTC

Schelte schrieb am Montag, 12. Juni 2023 um 21:27:20 UTC+2:
> On 12/06/2023 18:41, Alexandru wrote:
> > How where should I save your package?
> > I unpacked the ZIP archive to C:\Tcl\lib\www but package require www fails...
> As it is a Tcl module, you have to put it in one of the directories
> returned from [tcl::tm::path list], or add the directory where you put
> it to that list, using [tcl::tm::path add C:/Tcl/lib/www].
>
>
> Schelte.

Well, I'm a little bit familiar with the Tcl basics. I put your package as any other package into the recognized directory C:/Tcl/lib.
Should your archive have a pkgIndex.tcl ?
This file is not available so no wonder is not working.
I tried to define the pkgIndex.tcl with this content:

package ifneeded www 2.3 [list source [file join $dir www-2.3.tm]]

This give me the error:

attempt to provide package www 2.3 failed: no version of package www provided

Re: How to deal with HTTP redirects to same URL

<945bb5a6-cf17-42f5-b6a1-f89d1cba9857n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=22300&group=comp.lang.tcl#22300

  copy link   Newsgroups: comp.lang.tcl
X-Received: by 2002:a05:6214:a05:b0:62d:e411:b601 with SMTP id dw5-20020a0562140a0500b0062de411b601mr1094535qvb.12.1686663531076;
Tue, 13 Jun 2023 06:38:51 -0700 (PDT)
X-Received: by 2002:a05:620a:4621:b0:761:87df:b454 with SMTP id
br33-20020a05620a462100b0076187dfb454mr641642qkb.5.1686663530857; Tue, 13 Jun
2023 06:38:50 -0700 (PDT)
Path: i2pn2.org!i2pn.org!news.1d4.us!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.tcl
Date: Tue, 13 Jun 2023 06:38:50 -0700 (PDT)
In-Reply-To: <01dd224d-4043-4ef3-bbf3-5e7a62d985ean@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=77.12.5.153; posting-account=glPZ8goAAADztwA3kVEZPMKXCGydx5DU
NNTP-Posting-Host: 77.12.5.153
References: <74bef483-fc9a-4a94-b3bf-ed4ce3208d8en@googlegroups.com>
<nnd$3ee69abe$05b36f81@d320170246059d17> <91a9f9ea-a72d-415d-8d08-fd1a29ec58f1n@googlegroups.com>
<nnd$00adc8be$2a42f6f5@32b827176cd38e0f> <bcedf09e-d2cf-4f69-8e3e-a3ae91530a2dn@googlegroups.com>
<86531c25-6dbc-4f7c-b88f-aea2d2f9d601n@googlegroups.com> <nnd$73cb4224$4036d484@efa2e9b0bbde3054>
<01dd224d-4043-4ef3-bbf3-5e7a62d985ean@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <945bb5a6-cf17-42f5-b6a1-f89d1cba9857n@googlegroups.com>
Subject: Re: How to deal with HTTP redirects to same URL
From: alexandru.dadalau@meshparts.de (Alexandru)
Injection-Date: Tue, 13 Jun 2023 13:38:51 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 2680
 by: Alexandru - Tue, 13 Jun 2023 13:38 UTC

Alexandru schrieb am Dienstag, 13. Juni 2023 um 15:32:13 UTC+2:
> Schelte schrieb am Montag, 12. Juni 2023 um 21:27:20 UTC+2:
> > On 12/06/2023 18:41, Alexandru wrote:
> > > How where should I save your package?
> > > I unpacked the ZIP archive to C:\Tcl\lib\www but package require www fails...
> > As it is a Tcl module, you have to put it in one of the directories
> > returned from [tcl::tm::path list], or add the directory where you put
> > it to that list, using [tcl::tm::path add C:/Tcl/lib/www].
> >
> >
> > Schelte.
> Well, I'm a little bit familiar with the Tcl basics. I put your package as any other package into the recognized directory C:/Tcl/lib.
> Should your archive have a pkgIndex.tcl ?
> This file is not available so no wonder is not working.
> I tried to define the pkgIndex.tcl with this content:
>
> package ifneeded www 2.3 [list source [file join $dir www-2.3.tm]]
>
> This give me the error:
>
> attempt to provide package www 2.3 failed: no version of package www provided

Ah sorry, I think I know what the problem is. The tm are expected in another location than the normal libraries.
Forget my last post.

Re: How to deal with HTTP redirects to same URL

<8cb63402-6e94-4aff-bc8b-290f9a6885ddn@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=22301&group=comp.lang.tcl#22301

  copy link   Newsgroups: comp.lang.tcl
X-Received: by 2002:a37:314:0:b0:75d:42dc:ddff with SMTP id 20-20020a370314000000b0075d42dcddffmr846594qkd.5.1686663797163;
Tue, 13 Jun 2023 06:43:17 -0700 (PDT)
X-Received: by 2002:a05:6214:4a47:b0:626:65b7:84f with SMTP id
ph7-20020a0562144a4700b0062665b7084fmr1816104qvb.9.1686663796926; Tue, 13 Jun
2023 06:43:16 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.tcl
Date: Tue, 13 Jun 2023 06:43:16 -0700 (PDT)
In-Reply-To: <945bb5a6-cf17-42f5-b6a1-f89d1cba9857n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=77.12.5.153; posting-account=glPZ8goAAADztwA3kVEZPMKXCGydx5DU
NNTP-Posting-Host: 77.12.5.153
References: <74bef483-fc9a-4a94-b3bf-ed4ce3208d8en@googlegroups.com>
<nnd$3ee69abe$05b36f81@d320170246059d17> <91a9f9ea-a72d-415d-8d08-fd1a29ec58f1n@googlegroups.com>
<nnd$00adc8be$2a42f6f5@32b827176cd38e0f> <bcedf09e-d2cf-4f69-8e3e-a3ae91530a2dn@googlegroups.com>
<86531c25-6dbc-4f7c-b88f-aea2d2f9d601n@googlegroups.com> <nnd$73cb4224$4036d484@efa2e9b0bbde3054>
<01dd224d-4043-4ef3-bbf3-5e7a62d985ean@googlegroups.com> <945bb5a6-cf17-42f5-b6a1-f89d1cba9857n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <8cb63402-6e94-4aff-bc8b-290f9a6885ddn@googlegroups.com>
Subject: Re: How to deal with HTTP redirects to same URL
From: alexandru.dadalau@meshparts.de (Alexandru)
Injection-Date: Tue, 13 Jun 2023 13:43:17 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 2977
 by: Alexandru - Tue, 13 Jun 2023 13:43 UTC

Alexandru schrieb am Dienstag, 13. Juni 2023 um 15:38:53 UTC+2:
> Alexandru schrieb am Dienstag, 13. Juni 2023 um 15:32:13 UTC+2:
> > Schelte schrieb am Montag, 12. Juni 2023 um 21:27:20 UTC+2:
> > > On 12/06/2023 18:41, Alexandru wrote:
> > > > How where should I save your package?
> > > > I unpacked the ZIP archive to C:\Tcl\lib\www but package require www fails...
> > > As it is a Tcl module, you have to put it in one of the directories
> > > returned from [tcl::tm::path list], or add the directory where you put
> > > it to that list, using [tcl::tm::path add C:/Tcl/lib/www].
> > >
> > >
> > > Schelte.
> > Well, I'm a little bit familiar with the Tcl basics. I put your package as any other package into the recognized directory C:/Tcl/lib.
> > Should your archive have a pkgIndex.tcl ?
> > This file is not available so no wonder is not working.
> > I tried to define the pkgIndex.tcl with this content:
> >
> > package ifneeded www 2.3 [list source [file join $dir www-2.3.tm]]
> >
> > This give me the error:
> >
> > attempt to provide package www 2.3 failed: no version of package www provided
> Ah sorry, I think I know what the problem is. The tm are expected in another location than the normal libraries.
> Forget my last post.

Now I put the www directory directory into one of the paths returned by [tcl::tm::path list] and it can still not find the package.

Re: How to deal with HTTP redirects to same URL

<nnd$7f7f4a36$4028cfe6@9467f2ca075d5e95>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=22302&group=comp.lang.tcl#22302

  copy link   Newsgroups: comp.lang.tcl
Date: Tue, 13 Jun 2023 16:26:54 +0200
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0
Subject: Re: How to deal with HTTP redirects to same URL
Content-Language: en-US
Newsgroups: comp.lang.tcl
References: <74bef483-fc9a-4a94-b3bf-ed4ce3208d8en@googlegroups.com> <nnd$3ee69abe$05b36f81@d320170246059d17> <91a9f9ea-a72d-415d-8d08-fd1a29ec58f1n@googlegroups.com> <nnd$00adc8be$2a42f6f5@32b827176cd38e0f> <bcedf09e-d2cf-4f69-8e3e-a3ae91530a2dn@googlegroups.com> <86531c25-6dbc-4f7c-b88f-aea2d2f9d601n@googlegroups.com> <nnd$73cb4224$4036d484@efa2e9b0bbde3054> <01dd224d-4043-4ef3-bbf3-5e7a62d985ean@googlegroups.com> <945bb5a6-cf17-42f5-b6a1-f89d1cba9857n@googlegroups.com> <8cb63402-6e94-4aff-bc8b-290f9a6885ddn@googlegroups.com>
From: nospam@wanadoo.nl (Schelte)
In-Reply-To: <8cb63402-6e94-4aff-bc8b-290f9a6885ddn@googlegroups.com>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Message-ID: <nnd$7f7f4a36$4028cfe6@9467f2ca075d5e95>
Organization: KPN B.V.
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!feeder1.feed.usenet.farm!feed.usenet.farm!feeder.usenetexpress.com!tr1.eu1.usenetexpress.com!94.232.112.244.MISMATCH!feed.abavia.com!abe004.abavia.com!abp003.abavia.com!news.kpn.nl!not-for-mail
Lines: 21
Injection-Date: Tue, 13 Jun 2023 16:26:54 +0200
Injection-Info: news.kpn.nl; mail-complaints-to="abuse@kpn.com"
 by: Schelte - Tue, 13 Jun 2023 14:26 UTC

On 13/06/2023 15:43, Alexandru wrote:
> Now I put the www directory directory into one of the paths returned by [tcl::tm::path list] and it can still not find the package.

The module system doesn't look in subdirectories. That was one of its
design goals: avoid delays due to scanning large portions of the file
system. So you should put the contents of the www directory in a path
returned by [tcl::tm::path list].

Alternatively, you can indicate that the package is in the www
subdirectory: package require www::www. That will work for this specific
case. But it will mess things up if one of the sub packages is needed,
such as www::digest, which should now be loaded as www::www::digest.

I didn't include an installation part in the documentation because it is
just a normal Tcl module. But if even a long-time Tcl user like yourself
is struggling with it, I guess I may have to add it.

Schelte.

Re: How to deal with HTTP redirects to same URL

<b7dc85a6-3e3c-4375-b7bf-0c737872e394n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=22303&group=comp.lang.tcl#22303

  copy link   Newsgroups: comp.lang.tcl
X-Received: by 2002:a05:622a:18a9:b0:3f8:6bf6:7401 with SMTP id v41-20020a05622a18a900b003f86bf67401mr3940464qtc.7.1686668088805;
Tue, 13 Jun 2023 07:54:48 -0700 (PDT)
X-Received: by 2002:a37:342:0:b0:75c:9a12:8e61 with SMTP id
63-20020a370342000000b0075c9a128e61mr1876175qkd.8.1686668088679; Tue, 13 Jun
2023 07:54:48 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!panix!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.tcl
Date: Tue, 13 Jun 2023 07:54:48 -0700 (PDT)
In-Reply-To: <nnd$7f7f4a36$4028cfe6@9467f2ca075d5e95>
Injection-Info: google-groups.googlegroups.com; posting-host=77.12.5.153; posting-account=glPZ8goAAADztwA3kVEZPMKXCGydx5DU
NNTP-Posting-Host: 77.12.5.153
References: <74bef483-fc9a-4a94-b3bf-ed4ce3208d8en@googlegroups.com>
<nnd$3ee69abe$05b36f81@d320170246059d17> <91a9f9ea-a72d-415d-8d08-fd1a29ec58f1n@googlegroups.com>
<nnd$00adc8be$2a42f6f5@32b827176cd38e0f> <bcedf09e-d2cf-4f69-8e3e-a3ae91530a2dn@googlegroups.com>
<86531c25-6dbc-4f7c-b88f-aea2d2f9d601n@googlegroups.com> <nnd$73cb4224$4036d484@efa2e9b0bbde3054>
<01dd224d-4043-4ef3-bbf3-5e7a62d985ean@googlegroups.com> <945bb5a6-cf17-42f5-b6a1-f89d1cba9857n@googlegroups.com>
<8cb63402-6e94-4aff-bc8b-290f9a6885ddn@googlegroups.com> <nnd$7f7f4a36$4028cfe6@9467f2ca075d5e95>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <b7dc85a6-3e3c-4375-b7bf-0c737872e394n@googlegroups.com>
Subject: Re: How to deal with HTTP redirects to same URL
From: alexandru.dadalau@meshparts.de (Alexandru)
Injection-Date: Tue, 13 Jun 2023 14:54:48 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 2744
 by: Alexandru - Tue, 13 Jun 2023 14:54 UTC

Schelte schrieb am Dienstag, 13. Juni 2023 um 16:27:00 UTC+2:
> On 13/06/2023 15:43, Alexandru wrote:
> > Now I put the www directory directory into one of the paths returned by [tcl::tm::path list] and it can still not find the package.
> The module system doesn't look in subdirectories. That was one of its
> design goals: avoid delays due to scanning large portions of the file
> system. So you should put the contents of the www directory in a path
> returned by [tcl::tm::path list].
>
> Alternatively, you can indicate that the package is in the www
> subdirectory: package require www::www. That will work for this specific
> case. But it will mess things up if one of the sub packages is needed,
> such as www::digest, which should now be loaded as www::www::digest.
>
> I didn't include an installation part in the documentation because it is
> just a normal Tcl module. But if even a long-time Tcl user like yourself
> is struggling with it, I guess I may have to add it.
>
>
> Schelte.

Thanks, now it loads the package.
I'll test it.

Regards
Alexandru

Re: How to deal with HTTP redirects to same URL

<a2d6f799-720c-4c26-9d58-98cc309b7165n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=22305&group=comp.lang.tcl#22305

  copy link   Newsgroups: comp.lang.tcl
X-Received: by 2002:a37:aa0a:0:b0:75e:cddb:26aa with SMTP id t10-20020a37aa0a000000b0075ecddb26aamr1894226qke.6.1686671940322;
Tue, 13 Jun 2023 08:59:00 -0700 (PDT)
X-Received: by 2002:a37:a943:0:b0:75e:cc54:7d73 with SMTP id
s64-20020a37a943000000b0075ecc547d73mr1147880qke.2.1686671940125; Tue, 13 Jun
2023 08:59:00 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.tcl
Date: Tue, 13 Jun 2023 08:58:59 -0700 (PDT)
In-Reply-To: <b7dc85a6-3e3c-4375-b7bf-0c737872e394n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=82.207.255.158; posting-account=glPZ8goAAADztwA3kVEZPMKXCGydx5DU
NNTP-Posting-Host: 82.207.255.158
References: <74bef483-fc9a-4a94-b3bf-ed4ce3208d8en@googlegroups.com>
<nnd$3ee69abe$05b36f81@d320170246059d17> <91a9f9ea-a72d-415d-8d08-fd1a29ec58f1n@googlegroups.com>
<nnd$00adc8be$2a42f6f5@32b827176cd38e0f> <bcedf09e-d2cf-4f69-8e3e-a3ae91530a2dn@googlegroups.com>
<86531c25-6dbc-4f7c-b88f-aea2d2f9d601n@googlegroups.com> <nnd$73cb4224$4036d484@efa2e9b0bbde3054>
<01dd224d-4043-4ef3-bbf3-5e7a62d985ean@googlegroups.com> <945bb5a6-cf17-42f5-b6a1-f89d1cba9857n@googlegroups.com>
<8cb63402-6e94-4aff-bc8b-290f9a6885ddn@googlegroups.com> <nnd$7f7f4a36$4028cfe6@9467f2ca075d5e95>
<b7dc85a6-3e3c-4375-b7bf-0c737872e394n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <a2d6f799-720c-4c26-9d58-98cc309b7165n@googlegroups.com>
Subject: Re: How to deal with HTTP redirects to same URL
From: alexandru.dadalau@meshparts.de (Alexandru)
Injection-Date: Tue, 13 Jun 2023 15:59:00 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 3887
 by: Alexandru - Tue, 13 Jun 2023 15:58 UTC

Alexandru schrieb am Dienstag, 13. Juni 2023 um 16:54:51 UTC+2:
> Schelte schrieb am Dienstag, 13. Juni 2023 um 16:27:00 UTC+2:
> > On 13/06/2023 15:43, Alexandru wrote:
> > > Now I put the www directory directory into one of the paths returned by [tcl::tm::path list] and it can still not find the package.
> > The module system doesn't look in subdirectories. That was one of its
> > design goals: avoid delays due to scanning large portions of the file
> > system. So you should put the contents of the www directory in a path
> > returned by [tcl::tm::path list].
> >
> > Alternatively, you can indicate that the package is in the www
> > subdirectory: package require www::www. That will work for this specific
> > case. But it will mess things up if one of the sub packages is needed,
> > such as www::digest, which should now be loaded as www::www::digest.
> >
> > I didn't include an installation part in the documentation because it is
> > just a normal Tcl module. But if even a long-time Tcl user like yourself
> > is struggling with it, I guess I may have to add it.
> >
> >
> > Schelte.
> Thanks, now it loads the package.
> I'll test it.
>
> Regards
> Alexandru

When trying to open another URL (https://www.avi-gmbh.com/) your code throws and error that that aborts the my program flow, although I use catch:
*** START OF ERROR MESSAGE ***
SSL channel "sock0000000015597E60": error: sslv3 alert handshake failure
SSL channel "sock0000000015597E60": error: sslv3 alert handshake failure
*** END OF ERROR MESSAGE ***
*** START OF ERROR MESSAGE ***
software caused connection abort
software caused connection abort
while executing
"close $fd"
(class "::www::connection" method "Disconnect" line 6)
invoked from within
"my Disconnect"
(class "::www::connection" method "Failed" line 3)
invoked from within
"my Failed {WWW DATA TIMEOUT} "timeout waiting for a response""
(class "::www::connection" method "Timedout" line 2)
invoked from within
"::oo::Obj1007::my Timedout"
("after" script)
*** END OF ERROR MESSAGE ***

How can continue in case of an error?

Re: How to deal with HTTP redirects to same URL

<nnd$71b9c5ba$298532b9@65a7f470826e14a7>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=22306&group=comp.lang.tcl#22306

  copy link   Newsgroups: comp.lang.tcl
Date: Wed, 14 Jun 2023 15:40:59 +0200
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.11.0
Subject: Re: How to deal with HTTP redirects to same URL
Content-Language: en-US
Newsgroups: comp.lang.tcl
References: <74bef483-fc9a-4a94-b3bf-ed4ce3208d8en@googlegroups.com>
<nnd$3ee69abe$05b36f81@d320170246059d17>
<91a9f9ea-a72d-415d-8d08-fd1a29ec58f1n@googlegroups.com>
<nnd$00adc8be$2a42f6f5@32b827176cd38e0f>
<bcedf09e-d2cf-4f69-8e3e-a3ae91530a2dn@googlegroups.com>
<86531c25-6dbc-4f7c-b88f-aea2d2f9d601n@googlegroups.com>
<nnd$73cb4224$4036d484@efa2e9b0bbde3054>
<01dd224d-4043-4ef3-bbf3-5e7a62d985ean@googlegroups.com>
<945bb5a6-cf17-42f5-b6a1-f89d1cba9857n@googlegroups.com>
<8cb63402-6e94-4aff-bc8b-290f9a6885ddn@googlegroups.com>
<nnd$7f7f4a36$4028cfe6@9467f2ca075d5e95>
<b7dc85a6-3e3c-4375-b7bf-0c737872e394n@googlegroups.com>
<a2d6f799-720c-4c26-9d58-98cc309b7165n@googlegroups.com>
From: nospam@wanadoo.nl (Schelte)
In-Reply-To: <a2d6f799-720c-4c26-9d58-98cc309b7165n@googlegroups.com>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Message-ID: <nnd$71b9c5ba$298532b9@65a7f470826e14a7>
Organization: KPN B.V.
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!newsreader4.netcologne.de!news.netcologne.de!peer01.ams1!peer.ams1.xlned.com!news.xlned.com!peer01.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!feed.abavia.com!abe005.abavia.com!abp001.abavia.com!news.kpn.nl!not-for-mail
Lines: 11
Injection-Date: Wed, 14 Jun 2023 15:40:59 +0200
Injection-Info: news.kpn.nl; mail-complaints-to="abuse@kpn.com"
X-Received-Bytes: 1901
 by: Schelte - Wed, 14 Jun 2023 13:40 UTC

On 13/06/2023 17:58, Alexandru wrote:
> When trying to open another URL (https://www.avi-gmbh.com/) your code throws and error that that aborts the my program flow, although I use catch

Thank you for this example of a failing scenario. I will investigate why
it is not handled correctly. But this may take some time.

Thanks,
Schelte.

Re: How to deal with HTTP redirects to same URL

<4b0d6861-b2ef-409f-90d0-56c25c28b408n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=22394&group=comp.lang.tcl#22394

  copy link   Newsgroups: comp.lang.tcl
X-Received: by 2002:ad4:4f53:0:b0:634:81f6:569b with SMTP id eu19-20020ad44f53000000b0063481f6569bmr96309qvb.10.1689753349318;
Wed, 19 Jul 2023 00:55:49 -0700 (PDT)
X-Received: by 2002:a05:6870:3a0f:b0:1b0:2f63:4ff5 with SMTP id
du15-20020a0568703a0f00b001b02f634ff5mr17340620oab.1.1689753348862; Wed, 19
Jul 2023 00:55:48 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!1.us.feeder.erje.net!feeder.erje.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.tcl
Date: Wed, 19 Jul 2023 00:55:48 -0700 (PDT)
In-Reply-To: <nnd$71b9c5ba$298532b9@65a7f470826e14a7>
Injection-Info: google-groups.googlegroups.com; posting-host=77.15.117.147; posting-account=glPZ8goAAADztwA3kVEZPMKXCGydx5DU
NNTP-Posting-Host: 77.15.117.147
References: <74bef483-fc9a-4a94-b3bf-ed4ce3208d8en@googlegroups.com>
<nnd$3ee69abe$05b36f81@d320170246059d17> <91a9f9ea-a72d-415d-8d08-fd1a29ec58f1n@googlegroups.com>
<nnd$00adc8be$2a42f6f5@32b827176cd38e0f> <bcedf09e-d2cf-4f69-8e3e-a3ae91530a2dn@googlegroups.com>
<86531c25-6dbc-4f7c-b88f-aea2d2f9d601n@googlegroups.com> <nnd$73cb4224$4036d484@efa2e9b0bbde3054>
<01dd224d-4043-4ef3-bbf3-5e7a62d985ean@googlegroups.com> <945bb5a6-cf17-42f5-b6a1-f89d1cba9857n@googlegroups.com>
<8cb63402-6e94-4aff-bc8b-290f9a6885ddn@googlegroups.com> <nnd$7f7f4a36$4028cfe6@9467f2ca075d5e95>
<b7dc85a6-3e3c-4375-b7bf-0c737872e394n@googlegroups.com> <a2d6f799-720c-4c26-9d58-98cc309b7165n@googlegroups.com>
<nnd$71b9c5ba$298532b9@65a7f470826e14a7>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <4b0d6861-b2ef-409f-90d0-56c25c28b408n@googlegroups.com>
Subject: Re: How to deal with HTTP redirects to same URL
From: alexandru.dadalau@meshparts.de (Alexandru)
Injection-Date: Wed, 19 Jul 2023 07:55:49 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 2399
 by: Alexandru - Wed, 19 Jul 2023 07:55 UTC

Schelte schrieb am Mittwoch, 14. Juni 2023 um 15:41:07 UTC+2:
> On 13/06/2023 17:58, Alexandru wrote:
> > When trying to open another URL (https://www.avi-gmbh.com/) your code throws and error that that aborts the my program flow, although I use catch
> Thank you for this example of a failing scenario. I will investigate why
> it is not handled correctly. But this may take some time.
>
>
> Thanks,
> Schelte.

Hi Schelte,
Did you find time to look into this issue?
I have a task where I could use your package if it can catch communication errors.
Many thanks
Alexandru

Re: How to deal with HTTP redirects to same URL

<nnd$6e9d92db$381df7ee@191c30f01c2b6b42>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=22395&group=comp.lang.tcl#22395

  copy link   Newsgroups: comp.lang.tcl
Date: Wed, 19 Jul 2023 10:46:55 +0200
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.12.0
Subject: Re: How to deal with HTTP redirects to same URL
Newsgroups: comp.lang.tcl
References: <74bef483-fc9a-4a94-b3bf-ed4ce3208d8en@googlegroups.com>
<nnd$3ee69abe$05b36f81@d320170246059d17>
<91a9f9ea-a72d-415d-8d08-fd1a29ec58f1n@googlegroups.com>
<nnd$00adc8be$2a42f6f5@32b827176cd38e0f>
<bcedf09e-d2cf-4f69-8e3e-a3ae91530a2dn@googlegroups.com>
<86531c25-6dbc-4f7c-b88f-aea2d2f9d601n@googlegroups.com>
<nnd$73cb4224$4036d484@efa2e9b0bbde3054>
<01dd224d-4043-4ef3-bbf3-5e7a62d985ean@googlegroups.com>
<945bb5a6-cf17-42f5-b6a1-f89d1cba9857n@googlegroups.com>
<8cb63402-6e94-4aff-bc8b-290f9a6885ddn@googlegroups.com>
<nnd$7f7f4a36$4028cfe6@9467f2ca075d5e95>
<b7dc85a6-3e3c-4375-b7bf-0c737872e394n@googlegroups.com>
<a2d6f799-720c-4c26-9d58-98cc309b7165n@googlegroups.com>
<nnd$71b9c5ba$298532b9@65a7f470826e14a7>
<4b0d6861-b2ef-409f-90d0-56c25c28b408n@googlegroups.com>
Content-Language: en-US
From: nospam@wanadoo.nl (Schelte)
In-Reply-To: <4b0d6861-b2ef-409f-90d0-56c25c28b408n@googlegroups.com>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Message-ID: <nnd$6e9d92db$381df7ee@191c30f01c2b6b42>
Organization: KPN B.V.
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!feeder1.feed.usenet.farm!feed.usenet.farm!peer03.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!feed.abavia.com!abe004.abavia.com!abp003.abavia.com!news.kpn.nl!not-for-mail
Lines: 16
Injection-Date: Wed, 19 Jul 2023 10:46:55 +0200
Injection-Info: news.kpn.nl; mail-complaints-to="abuse@kpn.com"
X-Received-Bytes: 2131
 by: Schelte - Wed, 19 Jul 2023 08:46 UTC

On 19/07/2023 09:55, Alexandru wrote:
> Did you find time to look into this issue?
> I have a task where I could use your package if it can catch communication errors.

I did have a quick look. But in my simple test, it doesn't behave
consistent. Sometimes the error is caught. Other times it takes a while
before it is reported via the background error handler. That makes
debugging harder. And then I got distracted by other things :-}

But knowing there is a real need for this, increases the priority. I
will have another go at it.

Schelte.

Re: How to deal with HTTP redirects to same URL

<eb0ef76a-7d61-4cfc-9740-84ce983a2744n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=22396&group=comp.lang.tcl#22396

  copy link   Newsgroups: comp.lang.tcl
X-Received: by 2002:a05:620a:28d6:b0:767:16e2:7c94 with SMTP id l22-20020a05620a28d600b0076716e27c94mr82975qkp.8.1689756767062;
Wed, 19 Jul 2023 01:52:47 -0700 (PDT)
X-Received: by 2002:a05:6870:c797:b0:1ba:5bdd:c8ac with SMTP id
dy23-20020a056870c79700b001ba5bddc8acmr12048478oab.7.1689756766902; Wed, 19
Jul 2023 01:52:46 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.tcl
Date: Wed, 19 Jul 2023 01:52:46 -0700 (PDT)
In-Reply-To: <nnd$6e9d92db$381df7ee@191c30f01c2b6b42>
Injection-Info: google-groups.googlegroups.com; posting-host=77.15.117.147; posting-account=glPZ8goAAADztwA3kVEZPMKXCGydx5DU
NNTP-Posting-Host: 77.15.117.147
References: <74bef483-fc9a-4a94-b3bf-ed4ce3208d8en@googlegroups.com>
<nnd$3ee69abe$05b36f81@d320170246059d17> <91a9f9ea-a72d-415d-8d08-fd1a29ec58f1n@googlegroups.com>
<nnd$00adc8be$2a42f6f5@32b827176cd38e0f> <bcedf09e-d2cf-4f69-8e3e-a3ae91530a2dn@googlegroups.com>
<86531c25-6dbc-4f7c-b88f-aea2d2f9d601n@googlegroups.com> <nnd$73cb4224$4036d484@efa2e9b0bbde3054>
<01dd224d-4043-4ef3-bbf3-5e7a62d985ean@googlegroups.com> <945bb5a6-cf17-42f5-b6a1-f89d1cba9857n@googlegroups.com>
<8cb63402-6e94-4aff-bc8b-290f9a6885ddn@googlegroups.com> <nnd$7f7f4a36$4028cfe6@9467f2ca075d5e95>
<b7dc85a6-3e3c-4375-b7bf-0c737872e394n@googlegroups.com> <a2d6f799-720c-4c26-9d58-98cc309b7165n@googlegroups.com>
<nnd$71b9c5ba$298532b9@65a7f470826e14a7> <4b0d6861-b2ef-409f-90d0-56c25c28b408n@googlegroups.com>
<nnd$6e9d92db$381df7ee@191c30f01c2b6b42>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <eb0ef76a-7d61-4cfc-9740-84ce983a2744n@googlegroups.com>
Subject: Re: How to deal with HTTP redirects to same URL
From: alexandru.dadalau@meshparts.de (Alexandru)
Injection-Date: Wed, 19 Jul 2023 08:52:47 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 2633
 by: Alexandru - Wed, 19 Jul 2023 08:52 UTC

Schelte schrieb am Mittwoch, 19. Juli 2023 um 10:47:00 UTC+2:
> On 19/07/2023 09:55, Alexandru wrote:
> > Did you find time to look into this issue?
> > I have a task where I could use your package if it can catch communication errors.
> I did have a quick look. But in my simple test, it doesn't behave
> consistent. Sometimes the error is caught. Other times it takes a while
> before it is reported via the background error handler. That makes
> debugging harder. And then I got distracted by other things :-}
>
> But knowing there is a real need for this, increases the priority. I
> will have another go at it.
>
>
> Schelte.

Yes, there is a real need. Thanks for the help.
Regards
Alexandru

Re: How to deal with HTTP redirects to same URL

<u99bgg$296h5$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=22397&group=comp.lang.tcl#22397

  copy link   Newsgroups: comp.lang.tcl
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: saitology9@gmail.com (saitology9)
Newsgroups: comp.lang.tcl
Subject: Re: How to deal with HTTP redirects to same URL
Date: Wed, 19 Jul 2023 14:54:06 -0400
Organization: A noiseless patient Spider
Lines: 13
Message-ID: <u99bgg$296h5$1@dont-email.me>
References: <74bef483-fc9a-4a94-b3bf-ed4ce3208d8en@googlegroups.com>
<nnd$3ee69abe$05b36f81@d320170246059d17>
<91a9f9ea-a72d-415d-8d08-fd1a29ec58f1n@googlegroups.com>
<nnd$00adc8be$2a42f6f5@32b827176cd38e0f>
<bcedf09e-d2cf-4f69-8e3e-a3ae91530a2dn@googlegroups.com>
<86531c25-6dbc-4f7c-b88f-aea2d2f9d601n@googlegroups.com>
<nnd$73cb4224$4036d484@efa2e9b0bbde3054>
<01dd224d-4043-4ef3-bbf3-5e7a62d985ean@googlegroups.com>
<945bb5a6-cf17-42f5-b6a1-f89d1cba9857n@googlegroups.com>
<8cb63402-6e94-4aff-bc8b-290f9a6885ddn@googlegroups.com>
<nnd$7f7f4a36$4028cfe6@9467f2ca075d5e95>
<b7dc85a6-3e3c-4375-b7bf-0c737872e394n@googlegroups.com>
<a2d6f799-720c-4c26-9d58-98cc309b7165n@googlegroups.com>
<nnd$71b9c5ba$298532b9@65a7f470826e14a7>
<4b0d6861-b2ef-409f-90d0-56c25c28b408n@googlegroups.com>
<nnd$6e9d92db$381df7ee@191c30f01c2b6b42>
<eb0ef76a-7d61-4cfc-9740-84ce983a2744n@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 19 Jul 2023 18:54:08 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="aac074d479afd80b2a7484d8a0909eb9";
logging-data="2398757"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+9k+a+UW3y+De9axZuwt9f"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.11.0
Cancel-Lock: sha1:l2z7to6Bd6L6lG+J4SXdI6/OYio=
Content-Language: en-US
In-Reply-To: <eb0ef76a-7d61-4cfc-9740-84ce983a2744n@googlegroups.com>
 by: saitology9 - Wed, 19 Jul 2023 18:54 UTC

On 7/19/2023 4:52 AM, Alexandru wrote:
>
> Yes, there is a real need. Thanks for the help.
> Regards
> Alexandru
>

Would you care to describe what you are doing with these websites?
Depending on your use, there may be other options.

Like: are you just downloading them to a local file? or checking
whether they are up and running? etc.

Re: How to deal with HTTP redirects to same URL

<3fbf3d9b-bad9-4d20-b29b-31325589080dn@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=22398&group=comp.lang.tcl#22398

  copy link   Newsgroups: comp.lang.tcl
X-Received: by 2002:ac8:570d:0:b0:403:fe96:5779 with SMTP id 13-20020ac8570d000000b00403fe965779mr15304qtw.5.1689793040952;
Wed, 19 Jul 2023 11:57:20 -0700 (PDT)
X-Received: by 2002:a05:6808:2128:b0:3a2:6d0f:5b27 with SMTP id
r40-20020a056808212800b003a26d0f5b27mr31486926oiw.2.1689793040642; Wed, 19
Jul 2023 11:57:20 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.tcl
Date: Wed, 19 Jul 2023 11:57:20 -0700 (PDT)
In-Reply-To: <u99bgg$296h5$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=82.207.255.152; posting-account=glPZ8goAAADztwA3kVEZPMKXCGydx5DU
NNTP-Posting-Host: 82.207.255.152
References: <74bef483-fc9a-4a94-b3bf-ed4ce3208d8en@googlegroups.com>
<nnd$3ee69abe$05b36f81@d320170246059d17> <91a9f9ea-a72d-415d-8d08-fd1a29ec58f1n@googlegroups.com>
<nnd$00adc8be$2a42f6f5@32b827176cd38e0f> <bcedf09e-d2cf-4f69-8e3e-a3ae91530a2dn@googlegroups.com>
<86531c25-6dbc-4f7c-b88f-aea2d2f9d601n@googlegroups.com> <nnd$73cb4224$4036d484@efa2e9b0bbde3054>
<01dd224d-4043-4ef3-bbf3-5e7a62d985ean@googlegroups.com> <945bb5a6-cf17-42f5-b6a1-f89d1cba9857n@googlegroups.com>
<8cb63402-6e94-4aff-bc8b-290f9a6885ddn@googlegroups.com> <nnd$7f7f4a36$4028cfe6@9467f2ca075d5e95>
<b7dc85a6-3e3c-4375-b7bf-0c737872e394n@googlegroups.com> <a2d6f799-720c-4c26-9d58-98cc309b7165n@googlegroups.com>
<nnd$71b9c5ba$298532b9@65a7f470826e14a7> <4b0d6861-b2ef-409f-90d0-56c25c28b408n@googlegroups.com>
<nnd$6e9d92db$381df7ee@191c30f01c2b6b42> <eb0ef76a-7d61-4cfc-9740-84ce983a2744n@googlegroups.com>
<u99bgg$296h5$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <3fbf3d9b-bad9-4d20-b29b-31325589080dn@googlegroups.com>
Subject: Re: How to deal with HTTP redirects to same URL
From: alexandru.dadalau@meshparts.de (Alexandru)
Injection-Date: Wed, 19 Jul 2023 18:57:20 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 2603
 by: Alexandru - Wed, 19 Jul 2023 18:57 UTC

saitology9 schrieb am Mittwoch, 19. Juli 2023 um 20:54:13 UTC+2:
> On 7/19/2023 4:52 AM, Alexandru wrote:
> >
> > Yes, there is a real need. Thanks for the help.
> > Regards
> > Alexandru
> >
> Would you care to describe what you are doing with these websites?
> Depending on your use, there may be other options.
>
> Like: are you just downloading them to a local file? or checking
> whether they are up and running? etc.

Parsing the HTML content for specific keywords.
I already have the Tcl scripts ready for work.
The only 2 issues are described above (error catching or handling of cookies)

Re: How to deal with HTTP redirects to same URL

<nnd$173d25a6$59ad553e@97f6ef29ec7ea11e>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=22422&group=comp.lang.tcl#22422

  copy link   Newsgroups: comp.lang.tcl
Date: Fri, 21 Jul 2023 21:48:08 +0200
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.12.0
Subject: Re: How to deal with HTTP redirects to same URL
Content-Language: en-US
Newsgroups: comp.lang.tcl
References: <74bef483-fc9a-4a94-b3bf-ed4ce3208d8en@googlegroups.com>
<nnd$3ee69abe$05b36f81@d320170246059d17>
<91a9f9ea-a72d-415d-8d08-fd1a29ec58f1n@googlegroups.com>
<nnd$00adc8be$2a42f6f5@32b827176cd38e0f>
<bcedf09e-d2cf-4f69-8e3e-a3ae91530a2dn@googlegroups.com>
<86531c25-6dbc-4f7c-b88f-aea2d2f9d601n@googlegroups.com>
<nnd$73cb4224$4036d484@efa2e9b0bbde3054>
<01dd224d-4043-4ef3-bbf3-5e7a62d985ean@googlegroups.com>
<945bb5a6-cf17-42f5-b6a1-f89d1cba9857n@googlegroups.com>
<8cb63402-6e94-4aff-bc8b-290f9a6885ddn@googlegroups.com>
<nnd$7f7f4a36$4028cfe6@9467f2ca075d5e95>
<b7dc85a6-3e3c-4375-b7bf-0c737872e394n@googlegroups.com>
<a2d6f799-720c-4c26-9d58-98cc309b7165n@googlegroups.com>
<nnd$71b9c5ba$298532b9@65a7f470826e14a7>
<4b0d6861-b2ef-409f-90d0-56c25c28b408n@googlegroups.com>
From: nospam@wanadoo.nl (Schelte)
In-Reply-To: <4b0d6861-b2ef-409f-90d0-56c25c28b408n@googlegroups.com>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Message-ID: <nnd$173d25a6$59ad553e@97f6ef29ec7ea11e>
Organization: KPN B.V.
Path: i2pn2.org!i2pn.org!news.swapon.de!newsreader4.netcologne.de!news.netcologne.de!peer02.ams1!peer.ams1.xlned.com!news.xlned.com!peer03.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!feed.abavia.com!abe004.abavia.com!abp003.abavia.com!news.kpn.nl!not-for-mail
Lines: 14
Injection-Date: Fri, 21 Jul 2023 21:48:08 +0200
Injection-Info: news.kpn.nl; mail-complaints-to="abuse@kpn.com"
X-Received-Bytes: 2090
 by: Schelte - Fri, 21 Jul 2023 19:48 UTC

On 19/07/2023 09:55, Alexandru wrote:
> Did you find time to look into this issue?
> I have a task where I could use your package if it can catch communication errors.

I have found a problem and fixed it. In my testing, the latest committed
version of the www package now consistently allows catching the error to
access the URL you mentioned. Please let me know if you encounter any
more problems.

Thanks,
Schelte.

Re: How to deal with HTTP redirects to same URL

<5b1f0d22-8ab5-439d-84ee-0bd4604497d8n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=22423&group=comp.lang.tcl#22423

  copy link   Newsgroups: comp.lang.tcl
X-Received: by 2002:ad4:55c3:0:b0:635:ddbc:cfc7 with SMTP id bt3-20020ad455c3000000b00635ddbccfc7mr3570qvb.1.1689969346330;
Fri, 21 Jul 2023 12:55:46 -0700 (PDT)
X-Received: by 2002:a05:6808:13d3:b0:3a3:e17e:d2ea with SMTP id
d19-20020a05680813d300b003a3e17ed2eamr7054524oiw.8.1689969346150; Fri, 21 Jul
2023 12:55:46 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.tcl
Date: Fri, 21 Jul 2023 12:55:45 -0700 (PDT)
In-Reply-To: <nnd$173d25a6$59ad553e@97f6ef29ec7ea11e>
Injection-Info: google-groups.googlegroups.com; posting-host=82.207.255.147; posting-account=glPZ8goAAADztwA3kVEZPMKXCGydx5DU
NNTP-Posting-Host: 82.207.255.147
References: <74bef483-fc9a-4a94-b3bf-ed4ce3208d8en@googlegroups.com>
<nnd$3ee69abe$05b36f81@d320170246059d17> <91a9f9ea-a72d-415d-8d08-fd1a29ec58f1n@googlegroups.com>
<nnd$00adc8be$2a42f6f5@32b827176cd38e0f> <bcedf09e-d2cf-4f69-8e3e-a3ae91530a2dn@googlegroups.com>
<86531c25-6dbc-4f7c-b88f-aea2d2f9d601n@googlegroups.com> <nnd$73cb4224$4036d484@efa2e9b0bbde3054>
<01dd224d-4043-4ef3-bbf3-5e7a62d985ean@googlegroups.com> <945bb5a6-cf17-42f5-b6a1-f89d1cba9857n@googlegroups.com>
<8cb63402-6e94-4aff-bc8b-290f9a6885ddn@googlegroups.com> <nnd$7f7f4a36$4028cfe6@9467f2ca075d5e95>
<b7dc85a6-3e3c-4375-b7bf-0c737872e394n@googlegroups.com> <a2d6f799-720c-4c26-9d58-98cc309b7165n@googlegroups.com>
<nnd$71b9c5ba$298532b9@65a7f470826e14a7> <4b0d6861-b2ef-409f-90d0-56c25c28b408n@googlegroups.com>
<nnd$173d25a6$59ad553e@97f6ef29ec7ea11e>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <5b1f0d22-8ab5-439d-84ee-0bd4604497d8n@googlegroups.com>
Subject: Re: How to deal with HTTP redirects to same URL
From: alexandru.dadalau@meshparts.de (Alexandru)
Injection-Date: Fri, 21 Jul 2023 19:55:46 +0000
Content-Type: text/plain; charset="UTF-8"
 by: Alexandru - Fri, 21 Jul 2023 19:55 UTC

Schelte schrieb am Freitag, 21. Juli 2023 um 21:48:13 UTC+2:
> On 19/07/2023 09:55, Alexandru wrote:
> > Did you find time to look into this issue?
> > I have a task where I could use your package if it can catch communication errors.
> I have found a problem and fixed it. In my testing, the latest committed
> version of the www package now consistently allows catching the error to
> access the URL you mentioned. Please let me know if you encounter any
> more problems.
>
>
> Thanks,
> Schelte.
Thanks Schelte, I'll run the code with your updated package right away and give you feedback.

Re: How to deal with HTTP redirects to same URL

<fa2bcda6-6ce5-4c78-9dc2-a3b2b74c1ccdn@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=22425&group=comp.lang.tcl#22425

  copy link   Newsgroups: comp.lang.tcl
X-Received: by 2002:a05:622a:1988:b0:400:a7a3:2261 with SMTP id u8-20020a05622a198800b00400a7a32261mr3830qtc.8.1689970278775;
Fri, 21 Jul 2023 13:11:18 -0700 (PDT)
X-Received: by 2002:a05:6808:2029:b0:3a3:a8d1:1aa1 with SMTP id
q41-20020a056808202900b003a3a8d11aa1mr6450470oiw.2.1689970278452; Fri, 21 Jul
2023 13:11:18 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.tcl
Date: Fri, 21 Jul 2023 13:11:17 -0700 (PDT)
In-Reply-To: <nnd$173d25a6$59ad553e@97f6ef29ec7ea11e>
Injection-Info: google-groups.googlegroups.com; posting-host=82.207.255.147; posting-account=glPZ8goAAADztwA3kVEZPMKXCGydx5DU
NNTP-Posting-Host: 82.207.255.147
References: <74bef483-fc9a-4a94-b3bf-ed4ce3208d8en@googlegroups.com>
<nnd$3ee69abe$05b36f81@d320170246059d17> <91a9f9ea-a72d-415d-8d08-fd1a29ec58f1n@googlegroups.com>
<nnd$00adc8be$2a42f6f5@32b827176cd38e0f> <bcedf09e-d2cf-4f69-8e3e-a3ae91530a2dn@googlegroups.com>
<86531c25-6dbc-4f7c-b88f-aea2d2f9d601n@googlegroups.com> <nnd$73cb4224$4036d484@efa2e9b0bbde3054>
<01dd224d-4043-4ef3-bbf3-5e7a62d985ean@googlegroups.com> <945bb5a6-cf17-42f5-b6a1-f89d1cba9857n@googlegroups.com>
<8cb63402-6e94-4aff-bc8b-290f9a6885ddn@googlegroups.com> <nnd$7f7f4a36$4028cfe6@9467f2ca075d5e95>
<b7dc85a6-3e3c-4375-b7bf-0c737872e394n@googlegroups.com> <a2d6f799-720c-4c26-9d58-98cc309b7165n@googlegroups.com>
<nnd$71b9c5ba$298532b9@65a7f470826e14a7> <4b0d6861-b2ef-409f-90d0-56c25c28b408n@googlegroups.com>
<nnd$173d25a6$59ad553e@97f6ef29ec7ea11e>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <fa2bcda6-6ce5-4c78-9dc2-a3b2b74c1ccdn@googlegroups.com>
Subject: Re: How to deal with HTTP redirects to same URL
From: alexandru.dadalau@meshparts.de (Alexandru)
Injection-Date: Fri, 21 Jul 2023 20:11:18 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 3142
 by: Alexandru - Fri, 21 Jul 2023 20:11 UTC

Schelte schrieb am Freitag, 21. Juli 2023 um 21:48:13 UTC+2:
> On 19/07/2023 09:55, Alexandru wrote:
> > Did you find time to look into this issue?
> > I have a task where I could use your package if it can catch communication errors.
> I have found a problem and fixed it. In my testing, the latest committed
> version of the www package now consistently allows catching the error to
> access the URL you mentioned. Please let me know if you encounter any
> more problems.
>
>
> Thanks,
> Schelte.
Your new code breaks earlier now at this link and with this error:

Getting https://globalautomationtechnologies.com/...(622/7537)
*** START OF ERROR MESSAGE ***
can't delete "::www::sock00000000154A58A0": command doesn't exist
can't delete "::www::sock00000000154A58A0": command doesn't exist
while executing
"rename ::www::$fd """
(class "::www::connection" method "Disconnect" line 5)
invoked from within
"my Disconnect"
(class "::www::connection" method "Failed" line 3)
invoked from within
"my Failed [dict get $opts -errorcode] $msg"
(class "::www::connection" method "Statusline" line 20)
invoked from within
"::oo::Obj756::my Statusline"
*** END OF ERROR MESSAGE ***

Re: How to deal with HTTP redirects to same URL

<u9eta4$3eke3$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=22427&group=comp.lang.tcl#22427

  copy link   Newsgroups: comp.lang.tcl
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: saitology9@gmail.com (saitology9)
Newsgroups: comp.lang.tcl
Subject: Re: How to deal with HTTP redirects to same URL
Date: Fri, 21 Jul 2023 17:28:36 -0400
Organization: A noiseless patient Spider
Lines: 25
Message-ID: <u9eta4$3eke3$1@dont-email.me>
References: <74bef483-fc9a-4a94-b3bf-ed4ce3208d8en@googlegroups.com>
<nnd$3ee69abe$05b36f81@d320170246059d17>
<91a9f9ea-a72d-415d-8d08-fd1a29ec58f1n@googlegroups.com>
<nnd$00adc8be$2a42f6f5@32b827176cd38e0f>
<bcedf09e-d2cf-4f69-8e3e-a3ae91530a2dn@googlegroups.com>
<86531c25-6dbc-4f7c-b88f-aea2d2f9d601n@googlegroups.com>
<nnd$73cb4224$4036d484@efa2e9b0bbde3054>
<01dd224d-4043-4ef3-bbf3-5e7a62d985ean@googlegroups.com>
<945bb5a6-cf17-42f5-b6a1-f89d1cba9857n@googlegroups.com>
<8cb63402-6e94-4aff-bc8b-290f9a6885ddn@googlegroups.com>
<nnd$7f7f4a36$4028cfe6@9467f2ca075d5e95>
<b7dc85a6-3e3c-4375-b7bf-0c737872e394n@googlegroups.com>
<a2d6f799-720c-4c26-9d58-98cc309b7165n@googlegroups.com>
<nnd$71b9c5ba$298532b9@65a7f470826e14a7>
<4b0d6861-b2ef-409f-90d0-56c25c28b408n@googlegroups.com>
<nnd$173d25a6$59ad553e@97f6ef29ec7ea11e>
<fa2bcda6-6ce5-4c78-9dc2-a3b2b74c1ccdn@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 21 Jul 2023 21:28:36 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="e6e1aff65ff23ec4f5a943c14a979c44";
logging-data="3625411"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/IMqn2dUMZyY7aLItylFvn"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.11.0
Cancel-Lock: sha1:1tQPdHQMG9OJG9AL3fcC9ZDLjYk=
In-Reply-To: <fa2bcda6-6ce5-4c78-9dc2-a3b2b74c1ccdn@googlegroups.com>
Content-Language: en-US
 by: saitology9 - Fri, 21 Jul 2023 21:28 UTC

On 7/21/2023 4:11 PM, Alexandru wrote:
> Schelte schrieb am Freitag, 21. Juli 2023 um 21:48:13 UTC+2:
>> I have found a problem and fixed it. In my testing, the latest committed
>> version of the www package now consistently allows catching the error to
>> access the URL you mentioned. Please let me know if you encounter any
>> more problems.
>>
>>
>> Thanks,
>> Schelte.
> Your new code breaks earlier now at this link and with this error:
>
> Getting https://globalautomationtechnologies.com/...(622/7537)

I noticed that whenever you get these errors, Firefox and Chrome also
complain. It is because these sites do not have their certificates setup
but the url's start with https. If you use http instead in the same
url's, it works and redirect works.

Re: How to deal with HTTP redirects to same URL

<20f9db35-d084-4688-ba6d-c6cf2e1ee7fan@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=22428&group=comp.lang.tcl#22428

  copy link   Newsgroups: comp.lang.tcl
X-Received: by 2002:a37:b484:0:b0:767:40cc:944d with SMTP id d126-20020a37b484000000b0076740cc944dmr3526qkf.9.1689979388125;
Fri, 21 Jul 2023 15:43:08 -0700 (PDT)
X-Received: by 2002:a05:6870:5a91:b0:1b3:eec8:fa8c with SMTP id
dt17-20020a0568705a9100b001b3eec8fa8cmr4416829oab.4.1689979387753; Fri, 21
Jul 2023 15:43:07 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.tcl
Date: Fri, 21 Jul 2023 15:43:07 -0700 (PDT)
In-Reply-To: <u9eta4$3eke3$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=82.207.255.147; posting-account=glPZ8goAAADztwA3kVEZPMKXCGydx5DU
NNTP-Posting-Host: 82.207.255.147
References: <74bef483-fc9a-4a94-b3bf-ed4ce3208d8en@googlegroups.com>
<nnd$3ee69abe$05b36f81@d320170246059d17> <91a9f9ea-a72d-415d-8d08-fd1a29ec58f1n@googlegroups.com>
<nnd$00adc8be$2a42f6f5@32b827176cd38e0f> <bcedf09e-d2cf-4f69-8e3e-a3ae91530a2dn@googlegroups.com>
<86531c25-6dbc-4f7c-b88f-aea2d2f9d601n@googlegroups.com> <nnd$73cb4224$4036d484@efa2e9b0bbde3054>
<01dd224d-4043-4ef3-bbf3-5e7a62d985ean@googlegroups.com> <945bb5a6-cf17-42f5-b6a1-f89d1cba9857n@googlegroups.com>
<8cb63402-6e94-4aff-bc8b-290f9a6885ddn@googlegroups.com> <nnd$7f7f4a36$4028cfe6@9467f2ca075d5e95>
<b7dc85a6-3e3c-4375-b7bf-0c737872e394n@googlegroups.com> <a2d6f799-720c-4c26-9d58-98cc309b7165n@googlegroups.com>
<nnd$71b9c5ba$298532b9@65a7f470826e14a7> <4b0d6861-b2ef-409f-90d0-56c25c28b408n@googlegroups.com>
<nnd$173d25a6$59ad553e@97f6ef29ec7ea11e> <fa2bcda6-6ce5-4c78-9dc2-a3b2b74c1ccdn@googlegroups.com>
<u9eta4$3eke3$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <20f9db35-d084-4688-ba6d-c6cf2e1ee7fan@googlegroups.com>
Subject: Re: How to deal with HTTP redirects to same URL
From: alexandru.dadalau@meshparts.de (Alexandru)
Injection-Date: Fri, 21 Jul 2023 22:43:08 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 3060
 by: Alexandru - Fri, 21 Jul 2023 22:43 UTC

saitology9 schrieb am Freitag, 21. Juli 2023 um 23:28:42 UTC+2:
> On 7/21/2023 4:11 PM, Alexandru wrote:
> > Schelte schrieb am Freitag, 21. Juli 2023 um 21:48:13 UTC+2:
> >> I have found a problem and fixed it. In my testing, the latest committed
> >> version of the www package now consistently allows catching the error to
> >> access the URL you mentioned. Please let me know if you encounter any
> >> more problems.
> >>
> >>
> >> Thanks,
> >> Schelte.
> > Your new code breaks earlier now at this link and with this error:
> >
> > Getting https://globalautomationtechnologies.com/...(622/7537)
> I noticed that whenever you get these errors, Firefox and Chrome also
> complain. It is because these sites do not have their certificates setup
> but the url's start with https. If you use http instead in the same
> url's, it works and redirect works.
Thanks for the hint.

Still, changing the URL from https to https won't solve the problem, since other sites will fail because of http.
Parsing 7000 sites need an error catching system.


devel / comp.lang.tcl / How to deal with HTTP redirects to same URL

Pages:12
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor