Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Simple web browser problem 1

Status
Not open for further replies.

fabien

Technical User
Sep 25, 2001
299
AU
Hi!

I have been using tkhtml to display html files, it works OK. Now I would like to display a live web page in a window.

I found this code on package require Tkhtml
package require http
pack [scrollbar .vsb -orient vertical -command {.html yview}] -side right -fill y
pack [html .html -bg white -yscrollcommand {.vsb set}] -fill both -expand 1
set t [http::geturl ]
.html parse [http::data $t]
http::cleanup $t

I get an error couldn't open socket: connection timed out at set t [http::geturl ]

Why is that? Is there something I need to setup on the unix side?

-I have http 2.4.5 tkhtml 2.0
- My internet connection works, I can display the site in Internet Explorer
 
I don't understand what happens.
I used with success:
set gif [http::data [http::geturl $name]]
where $name was a working URL.

ulis
 
Are you sure you qre on unix? I have a PC but I emulate unix via Exceed? Is there anything I have to setup. I tested and netscape does not work either. I may be because I need to set a proxy in Netscape's parameters but what do I have to do in the tcl code?

 
Have you looked at the documentation for http?
It's in the standard tcl distribution docs from
active state.
You can specify a proxy to use and any number of
other configurable parameters to your script.
See http::config.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top