Create address

Javascript

If you are running a website.

Insert this script into your web page, or put the script code into your web page, but the better way is to put the script on your website, in case this website is not online.

<script1 src="//filecxx.com/script/create_filec_address.js"></script1>
Download script

Usage:

Pass a JSON into create_filec_address function, json fields see JSON

create_filec_address({uri:"http://...."});

Sample:

fileu:0eyJ1cmkiOiJodHRwczovL2dpdGh1Yi5jb20vZmlsZWN4eC9GaWxlQ2VudGlwZWRlL3Jhdy9tYWluL3JlbGVhc2UvY2hyb21lLmNyeCJ9

If you like to hide your real address from users or give some limitations for user download, you should use the \"create address\" tool from software, it can generate an encrypted address.

(Javascript is not able to create an encrypted address.)

Create address

JSON: Add task

You can use JSON as an address to add a task, but remember, the JSON string must on one line.

Key Type Description
uri String Address

HTTP / HTTPS / Stream Optional

Key Type Description
method String GET, POST ... You know the thing
catalog String Catalog
page_url String Page url
user_agent String User Agent
cookies String Cookies
headers String HTTP Headers
content_type String Content Type (for HTTP POST)
data String HTTP request data
connect_timeout Number Connect timeout
max_connections Number Max connections
max_redirect Number Max redirect
max_retry Number Max retry
file_name String File name
speed_limit_download Number Download speed limit
auto_rename_file bool Auto rename file
ignore_remote_modified Number Ignore remote modified
ignore_server_busy Number Ignore server busy
ignore_http_error Number Ignore http error

FTP / FTPS Optional

Key Type Description
catalog String Catalog
page_url String Page url
connect_timeout Number Connect timeout
max_connections Number Max connections
max_retry Number Max retry
file_name String File name
user String Username
pass String Password
speed_limit_download Number Download speed limit
speed_limit_upload Number Upload speed limit
auto_rename_file bool Auto rename file
ignore_server_busy Number Ignore server busy

Magnet / HASH Optional

Key Type Description
catalog String Catalog
page_url String Page url
max_connections Number Max connections
file_name String File name
speed_limit_download Number Download speed limit
speed_limit_upload Number Upload speed limit
auto_rename_file bool Auto rename file
seeding_limit_ratio Number Seeding limit, ratio
seeding_limit_minutes Number Seeding limit, minutes
seeding_limit_size Number Seeding limit, size
seeding_limit_act Number Seeding limit, action
seeding_limit_speed_limit Number Seeding limit, speed limit
seeding_limit_ratio_enable bool Seeding limit, ratio enable
seeding_limit_minutes_enable bool Seeding limit, minutes enable
seeding_limit_size_enable bool Seeding limit, size enable
without_confirm bool Without confirm
sequential bool Sequential download

Share