Platforms UNIX Linux Development Development tools Sourcecode  

Microproxy 1.0 With C sourcecode.

download download home home  
important code information
author:
David McNab
minimum requirements:
Microproxy 1.0 With C sourcecode. description

This is microproxy, your ready-to-run, out-of-the-box, instant http proxy server. These files compile under plain Windows 95/98/NT/2k, Windows cygwin and Linux.



This is microproxy, your ready-to-run, out-of-the-box, instant http proxy server.

Version: 1.0

Author: David McNab - http://freeweb.sourceforge.net

--------------------------------------

Microproxy has two special features:

1) You can change the listening port, and/or assign or change a downstream proxy, in real-time

2) You can set the proxy in 'callback' mode, where on every http request, it will call a function of your choice. Your function can send back custom replies, or access data from another source, or block certain websites (eg www.doubleclick.com), or log accesses, or whatever you want.

I've released it to the community to encourage programming creativity.

** Use it as a skeleton - a building block for you to create your own proxy. **

The proxy itself is in proxy.c demo.c illustrates a sample use.

These files compile under plain Windows 95/98/NT/2k, Windows cygwin and Linux.

Build notes:

- windows
- you need to #define WINDOWS or add 'WINDOWS' to the preprocessor definitions
- you need to link to wsock32.lib

- cygwin
- it should build without any problems

- linux
- on some linux distros, you'll need to link to /usr/lib/libpthread.a

Otherwise, it should build and run with no problems.

To use the demo, set your browser to use the proxy address 127.0.0.1 port 8888.
Try surfing common sites like Yahoo. Then, try www.microsoft.com and see what happens.

If you find any bugs in proxy.c, please let me know. A working patch would be appreciated, but I'd be grateful to just know about the bug.

Enjoy! :)



File List:
ReadMe.txt2Kb
demo.c1Kb
proxy.c15Kb

Similar code
Text mode in Linux (Popularity: ) : This small tutorial program helps to use the textmode in linux. using textmode in LINUX is very easy and the tutorial presents it in a nice way(i think).It is done using ncurses library version 5.3 . it also demonstrates how ...
User reviews

Write a review:
1 2 3 4 5 6 7 8 9 10
1=poor 10=excellent
Write review*
Your name*
Email*
  (Comments are moderated, and will not appear on this site until the editor has approved them)
 
Rate me
supported os
stats
downloads 96
version
size in Kb 7
popularity   2724/7916551
user rating 5/10
ad


New Code
Popular Code