I need to program my computer to do a single http request every time it starts Windows XP, something like that:
http://www.domain/in...id=1&data=12513
What would be easiest way to do it? I could write a C program and add it to the startup section, but i kinda hope that there's a more simple and "hidden" way to achieve it. The line is always constant and doesn't change, that should make it pretty easy..
HTTP request
Started by Sinipull, Apr 10 2010 01:34 AM
10 replies to this topic
#1
Posted 10 April 2010 - 01:34 AM
|
|
|
#2
Posted 10 April 2010 - 06:14 AM
Hm...I'm not I understand what you mean. You want a program that automatically start without you having to add it to start up? Or are you asking if there's a simpler way to write HTTP request?
If it's the first question, I don't know. But it's the second question, I would suggestion Java.
Reading from and Writing to a URLConnection (The Java™ Tutorials > Custom Networking > Working with URLs)
If it's the first question, I don't know. But it's the second question, I would suggestion Java.
Reading from and Writing to a URLConnection (The Java™ Tutorials > Custom Networking > Working with URLs)
#3
Posted 10 April 2010 - 07:40 AM
Quote
You want a program that automatically start without you having to add it to start up?
I know how to write it in Java, but i don't want to use Java in this case, i would like to implement it as simple as possible.
Is it possible to send html request to a server without opening browser as a result?
#4
Posted 10 April 2010 - 08:13 AM
I think the real question in my mind is: to what purpose?
#5
Posted 11 April 2010 - 02:03 AM
The server is collecting information about computer's IP address.
#6
Posted 11 April 2010 - 10:39 PM
So you want to make a HTTP request without software. That makes no sense.
#7
Posted 12 April 2010 - 12:33 AM
I was hoping XP could handle that with some previously built function.
#8
Posted 12 April 2010 - 12:38 AM
#9
Posted 12 April 2010 - 01:12 PM
Wow, i never imagined it will be such a headache to find any information about C from google.
Several hours of searching, nothing useful, found some code, but it didn't work on my dev-c++.
Any examples of using winsock? Searched the tutorial section, didn't see anything useful about sockets in there.
Edit: never mind, i decided to use Java after all, Took 3 lines of code.
Several hours of searching, nothing useful, found some code, but it didn't work on my dev-c++.
Any examples of using winsock? Searched the tutorial section, didn't see anything useful about sockets in there.
Edit: never mind, i decided to use Java after all, Took 3 lines of code.
Edited by Sinipull, 13 April 2010 - 06:08 AM.
#10
Posted 18 April 2010 - 08:57 PM
Hi,
Please provide me the JAVA code to test the same.
Please provide me the JAVA code to test the same.
#11
Posted 19 April 2010 - 12:18 AM
URL url = new URL("http://www.domain.com/etc");
InputStream is = url.openStream();
is.close();


Sign In
Create Account


Back to top









