×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • 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!

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

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

HTTP programming - need help with TCP IP and streaming

HTTP programming - need help with TCP IP and streaming

HTTP programming - need help with TCP IP and streaming

(OP)
I want to write a program, either in Perl or C  that will connect to an HTTP server, at port 80, and be able to request from that server an HTML, ASP or CGI page, and receive from the server the streamed HTML in text format. How can this be done? Please be detailed, or if you can, please point me to references on the net that answer my question.

RE: HTTP programming - need help with TCP IP and streaming

(OP)
no... I haven't heard of btw.

is there any where on the net that has some sample programs or anything?

RE: HTTP programming - need help with TCP IP and streaming

Try open()ing it as a file.

Sincerely,

Tom Anderson
CEO, Order amid Chaos, Inc.
http://www.oac-design.com

RE: HTTP programming - need help with TCP IP and streaming

I have been working on some perl code to do this and then do some replacements.  Here is the relevant perl code if you are interested (it is probably not great)

#!/usr/local/bin/perl

use CGI qw/:standard :netscape/; # don't think this line is neccesary
require "/u/httpd/cgi-bin/cgi-lib.pl";   # don't think this line is neccesary
$url = 'http://somedomain.com';
use LWP::Simple;
$content = get("$url");

print "Content-type: text/html\n\n";
print $content;


If anyone has any ideas on this or http://www.tek-tips.com/gviewthread.cfm/lev2/4/lev3/32/pid/219/qid/28574

which is a related topic I would love to know

fortytwo
will@hellacool.co.uk
my test site

RE: HTTP programming - need help with TCP IP and streaming

This looks good:

http://search.cpan.org/search?dist=libwww-perl

Sincerely,

Tom Anderson
CEO, Order amid Chaos, Inc.
http://www.oac-design.com

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

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! Already a Member? Login


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