submitForm method
Submits a form with the given data
url
is the URL to submit the form to
method
is the HTTP method to use (GET or POST)
formData
is the form data to submit
headers
are additional headers to send with the request
timeout
is the timeout for the request in milliseconds
retries
is the number of retry attempts
Implementation
Future<String> submitForm({
required String url,
String method = 'POST',
required Map<String, String> formData,
Map<String, String>? headers,
int? timeout,
int? retries,
}) {
return _scraper.submitForm(
url: url,
method: method,
formData: formData,
headers: headers,
timeout: timeout,
retries: retries,
);
}