Good afternoon. There is a local web server, which is implemented inside the program (there is no source code, nothing is configured except the IP and the port on which it hangs). When accessing this port via a browser, an html page appears that needs to be changed. Only one thought occurred to intercept both incoming and outgoing http traffic, filter it (delete unnecessary data, add necessary data). Actually, how can this be implemented on .NET? For example, you probably need to receive a request on one port, work with traffic and then throw traffic to another local port http, if someone worked in this direction, tell me where to look at an example of something like that. The whole thing is under Windows.
- 2You want to write a proxy server, but you have not heard that word even once in the question. kbyte.ru/ru/Programming/Articles.aspx?id=66&mode=art as a sample - AK ♦
- Yes, the word did not sound, but the link that you gave exactly what you need, thank you so much. - Dmitriy Gvozd
- Well, as a result, it turned out? Do not want to answer your own question, leaving an indication to subsequent readers? - AK ♦
- I would answer if I worked on it right now, more than described in the article to which you gave the link, there is nothing to describe. You can close or delete the question if it interferes. Or later I will post a ready-made example, but when it will be I can not say. - Dmitry Nail
|