Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^4: IO::Socket Get Headers

by JoeJaz (Monk)
on Oct 04, 2004 at 22:26 UTC ( [id://396421]=note: print w/replies, xml ) Need Help??


in reply to Re^3: IO::Socket Get Headers
in thread IO::Socket Get Headers

Thank you for clarifying this for me. Indeed, it works and works very nicely. I was able to integrate it without any problem. If you would permit me to ask one more related question, I would also like to know how to how to check for the end of HTML content. With your help, I am able read in all of the GET headers. I am still having difficulty reading in the HTML response since it the program doesn't know when it has reached the end of the HTML stream. (I am making a very simple PROXY server). Is there a control character that I can check for at the end of an HTML transfer? Forgive me for asking all of these questions, but I have had a hard time finding any useful documentation on IO::Socket. Thanks for reading this and for your previous help and have a nice day. Joe

Replies are listed 'Best First'.
Re^5: IO::Socket Get Headers
by ikegami (Patriarch) on Oct 04, 2004 at 22:34 UTC

    To do the fetching side of the proxy, you probably should use LWP. It'll save you from knowing about Content-Length, for starters (and therein lies the answer to your question). Search for that in the spec I linked earlier.

      Thanks a bunch. I'll have a look at that more carefully. Your help is much appreciated. Joe

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://396421]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (3)
As of 2024-04-26 01:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found