Skip to content
This repository was archived by the owner on Jan 1, 2023. It is now read-only.
This repository was archived by the owner on Jan 1, 2023. It is now read-only.

FYI - Send post request #55

Open
@hotrush

Description

@hotrush
$puppeteer = new Puppeteer();
$browser = $puppeteer->launch();
$page = $browser->newPage();

$page->setRequestInterception(true);
$page->on('request', new JsFunction(
    ['interceptedRequest'],
    "
    var data = {
        'method': 'POST',
        'postData': '".http_build_query($options['form_params'])."'
    };
    interceptedRequest.continue(data);
    "
));

$response = $page->goto($uri);

You can add into docs or smth

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationThis issue probably exists due to a lack of documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions