Skip to content

Add Header #59

Open
Open
@danwfreeman

Description

@danwfreeman

When using the WPT web UI the addHeader method works great.

When using the node wrapper program I cannot get it to work.

This is the syntax I use in the WPT UI which works:
addHeader X-header: someheader
navigate https://some.url.com

In the node program it looks like this:

var script = wpt.scriptToString([
{addHeader:[‘X-Header:’, ‘someheader’]},
{navigate: "https://some.url.com"}
])

wpt.runTest(script, {"location": "us-west-2", "connectivity": "Cable"}, function(err, data) {
...
});

The headers do not show up in the requests when viewing the results on the WPT web UI

Is this disabled from the wrapper program, how can I get it to work?

Thanks,
Dan

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions