Sponsored Content
Full Discussion: proxy server using perl
Top Forums Shell Programming and Scripting proxy server using perl Post 302655375 by Arun_Linux on Wednesday 13th of June 2012 05:44:43 AM
Old 06-13-2012
Java proxy server using perl

I want to write a perl script on a server to behave like a proxy server.
I want to be able to enter the hostname and port on firefox proxy settings (or IE, chrome, whatever) and then go to a site, and have my webserver forward the request to another server, and forward the response back to the client. Is there a perl script/PM that can do this?

I dont want to use HTTP::Proxy, since i'm facing problem in installing it. Also ppm doesnt have HTTP::Proxy listed.
 

10 More Discussions You Might Find Interesting

1. IP Networking

routing through a proxy server

I'm new to this forum, so please be gentle ! I need to get my IBM RS running AIX4.3 onto the internet to a particular ftp server, through a NT server running proxy services. This NT server is directly connected to our internet router vis a secondary NIC on the NT server. When I add the route... (2 Replies)
Discussion started by: garry
2 Replies

2. UNIX for Dummies Questions & Answers

unix server behind MS proxy server

I'm trying to get a Unix server on the internet (mostly for DNS requests) but this server is on a network behind a Proxy server. How can I configure my unix server that he will pass the proxy server for internet requests? (2 Replies)
Discussion started by: RSlegers
2 Replies

3. Linux

how to get IP for proxy server

i have installed a proxy server on my linux box . how to get the IP for that proxy . cheers (3 Replies)
Discussion started by: ppass
3 Replies

4. IP Networking

Wanted: Recommendations for Proxy Server

I have a VPN client on a computer. Unfortunately, I am not, as a matter of my client's security policy, allowed to install that VPN client on additional computers in my home office. This is inconvient. I would like to use remote desktop from additional computers in my home office. Can someone... (4 Replies)
Discussion started by: siegfried
4 Replies

5. Shell Programming and Scripting

Proxy server/client in Perl

I have been toying with a Proxy client/server app that will listen on the CLIENT system on lets say port 7070. User's browser proxy setting is configured for "localhost" port "7070". When this proxy app gets a request for a URL it should FETCH the URL and display it on the browser. I... (1 Reply)
Discussion started by: Dabheeruz
1 Replies

6. Red Hat

How to get server out through work proxy

Hi, I want to be able to get my server to update via yum through our work proxy. I have tried the usual method of exporting the http_proxy=http://username:password@domain.com but this does not work for me. I opce heard about a guy who set up a proxy on his XP laptop (Don't flame me I have... (0 Replies)
Discussion started by: pobman
0 Replies

7. IP Networking

Software/tool to route an IP packet to proxy server and capture the Proxy reply as an

Hi, I am involved in a project on Debian. One of my requirement is to route an IP packet in my application to a proxy server and receive the reply from the proxy server as an IP packet. My application handles data at the IP frame level. My application creates an IP packet(with all the necessary... (0 Replies)
Discussion started by: Rajesh_BK
0 Replies

8. Cybersecurity

Help with iptables on proxy server

I may be doing this incorrectly, so if you have any suggestions, I'm open to it. So I installed a reverse proxy server on my LAN. It's not on the DMZ because it's coming from a blade running inside a virtual machine. Anyways, so I installed iptables and locked everything down from the outside... (1 Reply)
Discussion started by: sdotsen
1 Replies

9. Red Hat

Ftp problem on proxy server

Hi all, First of all i would like to say sorry to all for my english. My name is Mastan. We have an proxy server have 2 lan cards. one is for public and another for private. public ip: 182.72.141.... private ip: 192.168.0.0 So, the thing is i configure ftp server in my local for... (0 Replies)
Discussion started by: mastansaheb
0 Replies

10. UNIX for Dummies Questions & Answers

enable all operations to use a proxy server , redhat server

Hi, i would like to enable all operations/connections to use a proxy server in a redhat server , witch file should i config to get this for all conections .... Thanks (0 Replies)
Discussion started by: prpkrk
0 Replies
HTTP::Proxy::HeaderFilter(3pm)				User Contributed Perl Documentation			    HTTP::Proxy::HeaderFilter(3pm)

NAME
HTTP::Proxy::HeaderFilter - A base class for HTTP message header filters SYNOPSIS
package MyFilter; use base qw( HTTP::Proxy::HeaderFilter ); # changes the User-Agent header in all requests # this filter must be pushed on the request stack sub filter { my ( $self, $headers, $message ) = @_; $message->headers->header( User_Agent => 'MyFilter/1.0' ); } 1; DESCRIPTION
The HTTP::Proxy::HeaderFilter class is used to create filters for HTTP request/response headers. Creating a HeaderFilter A HeaderFilter is just a derived class that implements some methods called by the proxy. Of all the methods presented below, only "filter()" must be defined in the derived class. filter() The signature of the filter() method is the following: sub filter { my ( $self, $headers, $message) = @_; ... } where $self is the filter object, $headers is a HTTP::Headers object, and $message is either a HTTP::Request or a HTTP::Response object. The $headers HTTP::Headers object is the one that will be sent to the client (if the filter is on the response stack) or origin server (if the filter is on the request stack). If $headers is modified by the filter, the modified headers will be sent to the client or server. The init() method (if it exists) is called by the new() constructeur to perform all initisalisation tasks. It's called once in the filter lifetime. A HTTP::Proxy::HeaderFilter object is a blessed hash, and the base class reserves only hash keys that start with "_hphf". new() The constructor is defined for all subclasses. Initialisation tasks (if any) for subclasses should be done in the "init()" method (see below). init() This method is called by the "new()" constructeur to perform all initisalisation tasks. It's called once in the filter lifetime. It receives all the parameters passed to "new()". Standard HeaderFilters Standard HTTP::Proxy::HeaderFilter classes are lowercase. The following HeaderFilters are included in the HTTP::Proxy distribution: simple This class lets you create a simple header filter from a code reference. standard This is the filter that provides standard headers handling for HTTP::Proxy. It is loaded automatically by HTTP::Proxy. Please read each filter's documentation for more details about their use. USEFUL METHODS FOR SUBCLASSES
Some methods are available to filters, so that they can eventually use the little knowledge they might have of HTTP::Proxy's internals. They mostly are accessors. proxy() Gets a reference to the HTTP::Proxy objects that owns the filter. This gives access to some of the proxy methods. AUTHOR
Philippe "BooK" Bruhat, <book@cpan.org>. SEE ALSO
HTTP::Proxy, HTTP::Proxy::BodyFilter. COPYRIGHT
Copyright 2003-2005, Philippe Bruhat. LICENSE
This module is free software; you can redistribute it or modify it under the same terms as Perl itself. perl v5.12.4 2011-07-03 HTTP::Proxy::HeaderFilter(3pm)
All times are GMT -4. The time now is 09:33 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy