Godly T.Alias - B.Tech CSE,
National Institute of Technology Calicut
Follow me on GitHub
Do i need a gcc compiler for this to run ?.i.e shall i run this program and use the executable file to use the proxy ?
First Compile the program and execute the program with port no. as an argument.
Can you please explain what this program actually does? I mean how exactly should you run it in the browser
This is a proxy server. Execute the code in a terminal with a specified port. (For eg. for listening to port 10000, run the command ./object_name 10000)After this, go to your browser settings and there is option in your browser to set the proxy settings. Give the same port no and the server in which proxy is running.
Godly can U tell me please what is the input format ?? I mean I am done with these steps : 1. gave object name like ./filename vaue2.sites are working 3. HOW do I check other else paths of code??
What do you mean by other else paths?. What you want to do actually?
This comment has been removed by the author.
What does this proxy server do exactly? I ran it does it just filter out images? That's what I'm getting from this so far.
It won't filter out any images. If you run it in a server/pc it'll act as an intermediary for requests from clients. Webpage will be displayed as it is.
I changed a few lines to accomomdate POST request and used telnet to test. It works~Thank you~
do you have a proxy code with POST and HEAD samples too? thanks
This essay is very attractive and useful. Your this work defiantly helps other.access Monova in UK
Thank you for the compliments
Is it hard to implement proxy caching functionality into the server?
It can be done easily, just some changes in the server code will do.
hey goldy m trying to run it on linux using gcc i am typing ./a.out it just says success.How to exeecute it perfectly?
You have to pass the port no as parameter while executing.
Modify this code using parsing and repost it soon.
i ran this code but it wont display anything on firefox browser
*****WELCOME TO PROXY SERVER***** ..the output was just like this ..the website was not opening..please help me firstname.lastname@example.org
can i use this to filtering the websites
Yes, you have to add the conditions for website string comparison or other filter conditions.
This blog awesome and i learn a lot about programming from here.The best thing about this blog is that you doing from beginning to experts level.Love from
What should I do after the program started? what condition should I input if I want to access google via the program? Thank You so much!
This is program for a proxy server, You can execute program with a port number, so that proxy server will listen to that port number for requests,After this, go to your browser settings and there is option in your browser to set the proxy settings. Give the same port no and the server in which proxy is running.Then when you make requests in browser for requests, the proxy server will process it.
Godly, let's say I compiled it as "test", and run it "./test 10000"... I should change my proxy settings to port no. 10000, right? but what about for the "HTTP Proxy:"? what should I put there? should i put "test"? I'm using mozilla firefox. Thank you very much for your reply.
Hi, can I use this as FTP Proxy server?