Dealing with http request
If you need help with a project or need to know how to do something specific in VB.NET then please ask your questions in here.
Forum rules
Please LOCK your topics once you have found the solution to your question so we know you no longer require help with your query.
Please LOCK your topics once you have found the solution to your question so we know you no longer require help with your query.
10 posts
Page 1 of 1
I have an application that is making some http requests, i was woundering if i could bypass them - redirect them to some other url, for example if the specific app wants to send request to www.google.com i somehow redirect it and response in app comes from www.codenstuff.com ?
There are a couple of ways to do this. It may be possible to configure a HTTP proxy for this kind of redirection.
If you are only looking to redirect certain websites you could also modify the hosts file.
If you are only looking to redirect certain websites you could also modify the hosts file.
"C:\windows\System32\drivers\etc" is the path to the host file if you have windows on your C:\ Drive. Open with notepad. All info is in there on how to reroute or block a domain.
Practice makes perfect!
VIP since: 6-10-2011
VIP since: 6-10-2011
The hosts file is used to manually set the IP address for a domain. In this case if you want to replace the IP with an existing domain then you would need to use a DNS or HTTP proxy.
Could you give me a simple example, app or something that i could use ?
Also, none of domains - sites is mine, i want to intercept request on my pc and send those requsts to a different location
Also, none of domains - sites is mine, i want to intercept request on my pc and send those requsts to a different location

I couldn't name a specific application for this, though if you search for web filtering I'm sure you will find some.
As with any proxy server there will be some configuration needed in order to set it up. It will be more complicated than just using a hosts file.
As with any proxy server there will be some configuration needed in order to set it up. It will be more complicated than just using a hosts file.
I really su?k at this, but here is full app detail.
i have an application, not made by me, so i can't edit it.
it works as some kind of bot on following site x1.ccccc.com, now this server changed to y1.ccccc.com, and app can't work any more, and developers stoped publishing updates for app. i want to change the app requests from subdomain x1 to y1. neither sites nor app is made by me so i can't change anything. the only thing i can do is try to hook these requests and redirect them. what would be the simplest way to do this ? sorry i am asking again, but with web filtering i can only block certain sites...
i have an application, not made by me, so i can't edit it.
it works as some kind of bot on following site x1.ccccc.com, now this server changed to y1.ccccc.com, and app can't work any more, and developers stoped publishing updates for app. i want to change the app requests from subdomain x1 to y1. neither sites nor app is made by me so i can't change anything. the only thing i can do is try to hook these requests and redirect them. what would be the simplest way to do this ? sorry i am asking again, but with web filtering i can only block certain sites...
It may be possible to hook or patch the request but the code for this would be specific to the application.
10 posts
Page 1 of 1
Copyright Information
Copyright © Codenstuff.com 2020 - 2023