Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/252.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 将帐户传递到cUrl-Windows的连接_Php_Windows_Batch File_Curl_Ftp - Fatal编程技术网

Php 将帐户传递到cUrl-Windows的连接

Php 将帐户传递到cUrl-Windows的连接,php,windows,batch-file,curl,ftp,Php,Windows,Batch File,Curl,Ftp,我有一些文本文件,我需要ftp到一个安全的网站。我使用windows命令行批处理来放置curl语句,我必须将帐户、用户名和密码传递到站点才能连接。我搜索了一下如何记帐,但我运气不好。以下是我的命令,如果您能纠正我,我将不胜感激: curl -k -T test.txt -u name:psw type=6 -F description=testfile https://srvr.test.com/file_import.php 即使您使用的是批处理,问题还是在于curl语法,而不是批处理。所以

我有一些文本文件,我需要ftp到一个安全的网站。我使用windows命令行批处理来放置curl语句,我必须将帐户、用户名和密码传递到站点才能连接。我搜索了一下如何记帐,但我运气不好。以下是我的命令,如果您能纠正我,我将不胜感激:

curl -k -T test.txt -u name:psw type=6 -F description=testfile https://srvr.test.com/file_import.php

即使您使用的是批处理,问题还是在于curl语法,而不是批处理。所以,这不是一个编程问题,应该在问。当你尝试你写的东西时发生了什么?有错误吗?您期望发生什么,实际发生了什么?我得到的文件超过了256MB的最大大小,即使该文件只有2k测试文件