Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...I also believe that we all can contribute to each other's growth by sharing knowlege and experiences. I would love to take my skills and help people around the world solve problems..."

Geography

Where in the world do Tek-Tips members come from?
aioun (Programmer)
26 Sep 01 18:30
does anyone have a proc that will open up a socket to a site on another server?

i do not need to post anything i just need a http get call to pull in some information from another site without having to use frames...

can anyone help me?
memerot (Programmer)
11 Oct 01 13:51
You will find this very helpful:
http://www.codedog.net/CodeDog/sections/cd_section_router/1,2968,downloads,00.html

Look at the second TCL Code download, with HTTP_GET defined in tcl.  This forum and codedog are about it that I've found for onlin resources.

The code of the library just in case:
[# Syntax :
    [http_get {$server} {$path}]
    where server is your webserver : www.codedog.net
    path is the url : /thepageyou/need.html
]
[proc http_get {server path} {
  set httpsocket [socket $server 80]
  puts $httpsocket "GET $path HTTP/1.0"
  puts $httpsocket ""
  flush $httpsocket
  set output_from_webserver [read $httpsocket]
  return $output_from_webserver
}]

Hope this helps.

Brian White

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close