Sending a file via HTTP from the command line Windows.

Affiliates: 0,05 $ — how to earn
Pay with:
i agree with "Terms for Customers"
Sold: 0
Refunds: 0

Uploaded: 14.05.2010
Content: sendfileoverhttp.zip (6,74 kB)

Description

SendFileOverHTTP script to automatically send files via HTTP to a specified URL. Similar to sending a file via the browser. Command prompt Windows (cmd.exe), has a built-in instructions in Russian, Russian correctly handles filenames (giving names to the server in UTF-8). It is useful, for example, for automatic feeding xml file with the prices of the script online store, using the task scheduler Windows. Generally used only to send the file via HTTP. Perhaps the use of * .bat files. Requires installation of PHP5 module cURL, which is available free for download on the official website of PHP: http://windows.php.net/download/

Examples of the use of the script to send the file to the address http://example.com/upload.php:

php sendfileoverhttp.php (call reference)
php sendfileoverhttp.php http://example.com/upload.php "c: \\ file.txt"
php sendfileoverhttp.php http://example.com/upload.php "c: \\ file.txt" "name"

As can be seen from the examples, the first parameter is passed URL, in the second - path to the file. In addition, there is a third optional parameter, which can be passed to the host file name of the script. The default is the line "sendfileoverhttp_file" (ie PHP-script file will be available in the array $ _FILES ['sendfileoverhttp_file']). It is recommended to put quotation marks when passing parameters (as an example) to avoid confusion with spaces in file names.

As a result of its activities the script displays html-code received from the server when prompted. The names of the files transferred to the server is encoded in UTF-8, use iconv server side, if necessary.

Additional information

The script is in proper operating condition as a file with the name sendfileoverhttp.php. Obfuscated.
The original source is sold separately here http://space1000.plati.ru/asp/pay.asp?id_d=955969

See. Also:
http://space1000.ru/?p=6

Feedback

0
No feedback yet.
Period
1 month 3 months 12 months
0 0 0
0 0 0
In order to counter copyright infringement and property rights, we ask you to immediately inform us at support@plati.com the fact of such violations and to provide us with reliable information confirming your copyrights or rights of ownership. Email must contain your contact information (name, phone number, etc.)