djharbi2 Posted February 26, 2018 Posted February 26, 2018 how to send data to a web site, how to transfer the result to the client This site I want to do the sound thing in short
Moderators IIYAMA Posted February 26, 2018 Moderators Posted February 26, 2018 (edited) 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 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 February 26, 2018 by IIYAMA 1
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now