pagelet_server_task_start

Description

function pagelet_server_task_start(
  string $url,
  array $headers = [],
  string $post_data = "",
  array $files = [],
): resource

Processes a pagelet server request.

Parameters

  • string $url - The URL we're running this pagelet with.
  • array $headers = [] - HTTP headers to send to the pagelet.
  • string $post_data = "" - POST data to send.
  • array $files = [] - Array for the pagelet.

Return Values

  • resource - - An object that can be used with pagelet_server_task_status() or pagelet_server_task_result().