Question : Sending a simple HTTP request


I need to send a HTTP request that looks like this:

http://<ip>/web1?ANI=1120&NAME=Joe%20Smith&TOPIC=sales&WEBSITE=bweb.com

So, ANI, Name, Topic, Website are fields on the page. I  think I can just have a simple HTML page, with those fields and have the Form Action. Something like below but not sure:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
<html> 
<head><title>Test page</title></head> 
<body> 
<form action="http://<ip>/web1?"> 
    <input type="text" value="1122"  
        id="ANI" name="ANI" /> 
    <br /> 
    <input type="text" value="Joe Smith"  
        id="Name" name="Name" /> 
    <br /> 
    <input type="text" value="Sales"  
        id="Topic" name="Topic" /> 
    <br /> 

    <input type="text" value="bweb.com"  
        id="website" name="website" /> 
    <br />

     

    <input type="submit" /> 
</form> 
</body> 
 
</html>

Answer : Sending a simple HTTP request

You can even use it as the src of an image:

<img src="http://<ip>/web1?ANI=1120&NAME=Joe%20Smith&TOPIC=sales&WEBSITE=bweb.com" width="1" height="1" />

And it is not so hard to make that url return a transparent 1x1 pixel GIF image. For example using "Server.Transfer"
Random Solutions  
 
programming4us programming4us