且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在win form应用程序中上传本地服务器(wamp)上的文件

更新时间:2023-02-23 17:30:34

我不敢相信你不仅在运行HTTP服务器了http:// localhost,在默认端口上;并且你有一个名为/127.0.0.1的子目录。你更可能不太了解 URI方案 ;实际的URL是http:// localhost / New。



请参阅更多信息: http://en.wikipedia.org/wiki/URI_scheme [ ^ ]。



我也不太确定你是否正在运行任何HTTP服务器。你安装了一个吗?你从来没有提到它,我怀疑你不太明白它是如何工作的。抱歉,如果我错了。



另外,我想要注意的是,没有使用硬编码URL的情况。但是,如果这只是初步测试,那可能就行了。



-SA
I cannot believe that not only you are running HTTP server on "http://localhost", on default port; and that your have a sub-directory named "/127.0.0.1". It''s more likely that you do not quite understand the URI scheme; and you actual URL is "http://localhost/New".

Please see for more information: http://en.wikipedia.org/wiki/URI_scheme[^].

I also not quite sure that you are running any HTTP server at all. Did you install one? You never mentioned it, and I suspect you don''t quite understand how it works. Sorry if I''m wrong about it.

Also, I want to note that there are no situations where using a hard-coded URL is useful. However, if this is just a preliminary test, it''s probably OK.

—SA