Skip to content

PHP Output issue with @file data inputs #18

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);

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

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions