submitForm method

Future<String> submitForm({
  1. required String url,
  2. String method = 'POST',
  3. required Map<String, String> formData,
  4. Map<String, String>? headers,
  5. int? timeout,
  6. int? retries,
})

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,
  );
}