Jump to content

[help] web site transfer


djharbi2

Recommended Posts

  • Moderators

This is how you can fetch data(DOWNLOADING, not streaming) from a website. (need acl rights)

https://wiki.multitheftauto.com/wiki/FetchRemote

 

  • You can pass some data with the url.
  • Or use the option argument to send it with:

 

Optional Arguments

  • options: A table containing any request options:
    • queueName: Name of the queue to use. Any name can be used. If not set, the queue name is "default". Requests in the same queue are processed in order, one at a time.
    • connectionAttempts: Number of times to retry if the remote host does not respond. (Defaults to 10)
    • connectTimeout: Number of milliseconds each connection attempt will take before timing out. (Defaults to 10000)
    • postData: A string specifying any data you want to send to the remote HTTP server.
    • postIsBinary : A boolean specifying if the data is text, or binary. (Defaults to false)
    • method: A string specifying the request method. (Defaults to GET or POST)
    • headers: A table containing HTTP request headers. e.g.{ Pragma="no-cache" }
    • maxRedirects: An integer limiting the number of HTTP redirections to automatically follow. (Defaults to 8)
    • username: A string specifying the username for protected pages.
    • password: A string specifying the password for protected pages.
FROM VERSION 1.5.4-9.11413 ONWARDS
    • formFields: A table containing form items to submit. e.g.{ name="bob", email="[email protected]" }
  • arguments: A table containing arguments you may want to pass to the callback.
Edited by IIYAMA
  • Like 1
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...