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

Add new param to onResourceRequested callback function #11226

@mbazalik

Description

@mbazalik

As a developer I would like to be able to access the data part of POST request

In case following js code is evaluated on page:

$.ajax({
  url: '/test',
  type: 'POST',
  data: 'someTestingData'
});

requestData object is provides me with following:

Request (#31):

{
    "headers": [
        {
            "name": "Origin",
            "value": "https://SOMEURL.com"
        },
        {
            "name": "X-Requested-With",
            "value": "XMLHttpRequest"
        },
        {
            "name": "User-Agent",
            "value": "Mozilla/5.0 (Unknown; Linux x86_64) AppleWebKit/534.34 (KHTML, like Gecko) CasperJS/1.1.0-DEV+Phantomjs/1.8.1 Safari/534.34"
        },
        {
            "name": "Content-Type",
            "value": "application/x-www-form-urlencoded; charset=UTF-8"
        },
        {
            "name": "Accept",
            "value": "*/*"
        },
        {
            "name": "Referer",
            "value": "https://SOMEURL.com/buy"
        },
        {
            "name": "Content-Length",
            "value": "15"
        }
    ],
    "id": 31,
    "method": "POST",
    "time": "2013-04-11T14:44:20.099Z",
    "url": "https://SOMEURL.com/test"
}

As you can see, there is not any property which would give me a clue about the data part of reqyest

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions