Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C Networking
I'm making a HTTP PROXY SOFTWARE.
 
Storing the http request that the proxy software is receiving (from Firefox or any other web browser) in a string is not anm issue as I've already got it. The problem is how to continue with the process so my software could go on with the Internet query and then pass the results to the same browser that asked them.
 
So:
 
- COMPUTER A has a web browser installed (let's say firefox).
- COMPUTER B has my proxy server software installed.
- COMPUTER B receives a query from COMPUTER A firefox.
- COMPUTER B should act as a proxy handling all the next processes. Here is where I don't know how to continue.
Posted 11-Mar-11 23:39pm
Edited 12-Mar-11 1:23am
Joan Murt82.8K
v2
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

I am not sure what you are asking. So you click or load a link in Firefox and you want to open up the link via proxy?
  Permalink  
Comments
abhi5306 at 12-Mar-11 6:03am
   
yes
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

You need a server side socket listening to localhost on a port other than 80 (8080 typically). The server socket will accept an incoming connection and create and outgoing client side socket to the requested web resource. Then all information received from client side connection gets relayed back to server socket.
 
This is a detailed project with a bit of work. I have seen several client / server sock resources on the web via google search. I would recommend starting there to get familiar with socket connections locally. You MUST have an understanding for sockets and VB both to make this happen.
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 365
1 Sergey Alexandrovich Kryukov 329
2 BillWoodruff 210
3 Afzaal Ahmad Zeeshan 204
4 CPallini 185
0 OriginalGriff 5,515
1 DamithSL 4,451
2 Maciej Los 3,902
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,175


Advertise | Privacy | Mobile
Web01 | 2.8.141216.1 | Last Updated 12 Mar 2011
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100