Skip to content

如何实现类似curl的data binary #164

@shushenghong

Description

@shushenghong

curl -X POST http://localhost/test \
-H "Content-Type: application/octet-stream" \
  --data-binary @test.bin

我试了把上述命令存为test.txt

./go-stress-testing-linux -c 1 -n 1 -p ./test.txt

文件没传过去

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