Skip to content

PHP Output issue with @file data inputs #18

@philipnorton42

Description

@philipnorton42

This input

curl -u "demo" -X POST -d @file1.txt -d @file2.txt https://example.com/upload

Whilst it generates the correct data internally, it also produces the following output in the PHP formatter.

curl_setopt($curl_handle, CURLOPT_POSTFIELDS, "0=%40file1.txt&1=%40file2.txt");

This should be something like this:

$post = [
   "@file1.txt",
   "@file2.txt",
];
curl_setopt($curl_handle, CURLOPT_POSTFIELDS, $post);

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions