Skip to content

Intercepting requests #62

Description

@Matse2005

Hi first of all, thank you for this amazing project!

I have a question regarding request interception. I would like to intercept .m3u8 requests and access their URLs. For example, is something like the following javascript supported?

let m3u8;

await page.route('**/*.m3u8', route => {
  m3u8 = route.request().url();
  route.abort();
});

Is this approach supported in Playwright PHP? If so, what is the recommended way to implement this pattern so that I can capture the URL of .m3u8 files while aborting the request?

Thank you in advance for your guidance!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions