Skip to content

can't post binary data #2

@jimluo

Description

@jimluo

curl -v -X POST --data-binary @bin_data http://xxx.com
It's OK.

But binary data always return header "Content-length:0" by wireshark
curl.send('http://xxx.com', {
method='POST',
data=binary data} )
curl.curl_easy_setopt(handle, curl.CURLOPT_POSTFIELDSIZE, #args.data)
still not work.
data need to convert type to curl_easy_setopt?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions