HTTP to HTTPS Location rewrite with custom port
Updated Jun 06, 2023
Version 2.0Was this article helpful?
lreplace command doesn't replace any value in list but returns a new list with replaced value.
you can use this command :
set loc_list [lreplace $loc_list 0 2 https {} [lindex [split [lindex $loc_list 2] ":"] 0]:80]
or
set loc_list [lreplace $loc_list 0 2 https {} [getfield [lindex $loc_list 2] ":" 0]:80]