如何从服务器上的网站向我的电脑发送消息?

发布于 2024-09-25 16:31:59 字数 109 浏览 3 评论 0原文

我在世界各地的服务器上很少有网站运行某些功能,我希望该网站将输出直接发送到我的计算机(不需要我的计算机,它可以是我位于我的国家/地区的其他网站,重要的是是数据将从站点到达我在地球上的位置)。 谢谢, 伊晒

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

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

红尘作伴 2024-10-02 16:31:59

我想向美国的服务器发送页面请求,等待请求启动该功能,功能结束后,我想在我的计算机上获取结果。现在,这里的主要目标是找出从请求发送到结果显示在我的计算机上整个过程花费了多少时间。

因此,要打破这一点:
您在美国的网络服务器上有一个功能。您想知道请求一个页面、完成该功能以及将结果返回到您的计算机需要多长时间。

我的(新)建议是:

  1. 在您的网站上创建/修改一个网页以输出函数的结果以及运行该函数所需的时间。
  2. 运行 Firebug 并启用网络面板 (请参阅本文)加载新网页
  3. Firebug 会告诉您请求从发送初始 GET 到下载最后一个数据字节所需的时间。
  4. 该网页会告诉您该函数运行需要多长时间。
  5. 由此您可以知道a)整个过程花费了多长时间,b)函数完成需要多长时间,c)将数据从服务器传输到您的计算机花费了多少时间,反之亦然(firebug时间 - 函数时间)

这应该回答你的问题。

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:

  1. Create/modify a webpage on your site to output the results of your function and also the time it took to run the function.
  2. With Firebug running and the Net panel enabled (See this article) load your new webpage
  3. Firebug will tell you how long the request took to, from sending the inital GET to when the last byte of data was downloaded.
  4. The webpage will tell you how long the function took to run.
  5. 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.

山人契 2024-10-02 16:31:59

我怀疑“电子邮件”(通常称为电子邮件)可能是最好的解决方案。

如果您将输出通过电子邮件发送给自己,那么您可以从全球任何地方访问结果,无论是从您的计算机还是从某处的网吧。

应该有用的 .net 类是 System.Net.Mail.SmtpClient 和 System.Net.Mail.MailMessage。创建 MailMessage 并使用 SmtpClient 发送它。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文