简体   繁体   English

使用python将数据发送到远程服务器

[英]Sending data to remote servers with python

We are building an in house software package that will exclusively be used on Verizon aircards. 我们正在构建内部软件包,该软件包将仅在Verizon飞机卡上使用。 We want a simple way to send data from the laptop to our servers. 我们希望有一种简单的方法将数据从便携式计算机发送到我们的服务器。 Originally we were going to use python and FTP but found out that Verizon's ToS sometimes block ftp access. 最初,我们将使用python和FTP,但发现Verizon的ToS有时会阻止ftp访问。 Our next idea was to use port 80 to send files. 我们的下一个想法是使用端口80发送文件。 How could I achieve this with python 我怎么能用python实现

Python has http client libraries -- you can easily use those to post data to a web server. Python具有http客户端库-您可以轻松地使用这些客户端库将数据发布到Web服务器。 Read up on the documentation for the python core libraries. 阅读有关python核心库的文档。

尝试将ftp端口更改为80。某些规则仅阻止ftp端口(21),并且python使用套接字,这是网页http://docs.python.org/library/socket.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM