hi, i have few websites on servers around the world that run a certein function and i want that the site will send the output directly to my computer (no neccessary my computer, it can be my other website that is located in my country, the important thing is that the data will arrive form the site to my location on the globe). thanks, yishai
I suspect that "electronic mail", commonly called e-mail, is probably the best solution.
If you e-mail the output to yourself then you can access the results from anywhere in the globe, whether it's from your computer or from an Internet Cafe somewhere.
.net classes that should be useful are System.Net.Mail.SmtpClient and System.Net.Mail.MailMessage. Create a MailMessage and send it with the SmtpClient.
i want to send page request to a server in the us, wait for the request to start the function and after the function is over, i want to get the result on my computer. now, the main goal here is to find out how much time the entire process takes, from the request sending until the result show up on my computer.
So, to break this down: You have a function on a web server in the US. You want to know how long it takes to request a page, the function to complete and then for the result to be returned to your computer.
My (new) advice is this:
- Create/modify a webpage on your site to output the results of your function and also the time it took to run the function.
- With Firebug running and the Net panel enabled (See this article) load your new webpage
- Firebug will tell you how long the request took to, from sending the inital GET to when the last byte of data was downloaded.
- The webpage will tell you how long the function took to run.
- From this you know a) how long the entire process took, b) how long the function took to complete, c) how much time was taken transfering data from the server to your machine and vice versa (firebug time - function time)
This should answer your question.