Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

comment on

( #3333=superdoc: print w/replies, xml ) Need Help??

You're welcome to try one some friends and I hacked together a few years ago: http://thirdlobe.com/svn/web-proxy/trunk/

It's not my greatest or most efficient code (patches welcome), and it includes some features you probably don't need, but it's a web proxy, it uses POE, and it handles multiple connections and streaming.

Sample console output from your URL:

perl shproxy.pl <P> Starting web proxy 'proxy-section' on port 1888. <P> Entering main loop. >>>>>>>>>>>>>>>>>>>> GET http://193.68.124.87/axis-cgi/mjpg/video.cgi?camera=1&resolution=3 +52x288 HTTP/1.0 Cache-Control: no-cache Pragma: no-cache Accept: text/html, application/xml;q=0.9, application/xhtml+xml, image +/png, image/jpeg, image/gif, image/x-xbitmap, */*;q=0.1 Accept-Charset: iso-8859-1, utf-8, utf-16, *;q=0.1 Accept-Encoding: deflate, gzip, x-gzip, identity, *;q=0 Accept-Language: en,fi;q=0.9,fr;q=0.8 Host: 193.68.124.87 User-Agent: Opera/9.51 (Macintosh; PPC Mac OS X; U; en) Proxy-Connection: Keep-Alive >>>>>>>>>>>>>>>>>>>> <P> Request: http://193.68.124.87/axis-cgi/mjpg/video.cgi?camera=1&res +olution=352x288 <P> Fetching: http://193.68.124.87/axis-cgi/mjpg/video.cgi?camera=1&re +solution=352x288 <<<<<<<<<<<<<<<<<<<< HTTP/1.0 200 OK Cache-Control: no-cache Connection: close Pragma: no-cache Content-Type: multipart/x-mixed-replace; boundary=--myboundary Expires: Thu, 01 Dec 1994 16:00:00 GMT <<<<<<<<<<<<<<<<<<<< Chunk of 1428 octets. Chunk of 1428 octets. Chunk of 1428 octets. Chunk of 1428 octets. Chunk of 1428 octets. Chunk of 1428 octets. Chunk of 1428 octets. ^C

In reply to Re: POE Stream Proxy by rcaputo
in thread POE Stream Proxy by avo

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (3)
As of 2022-11-28 15:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?