Skip to content
This repository was archived by the owner on Jan 13, 2021. It is now read-only.
This repository was archived by the owner on Jan 13, 2021. It is now read-only.

HTTP20Connection request and OpenSSL version #227

@lithiumlab

Description

@lithiumlab

Any information on how to create a multipart body?
On the code comments of hyper body is about a file-like object or bytestring

        v2_url = 'service.example.api.com'
        conn = HTTP20Connection(v2_url)
        conn.request('POST', '/endpoint', headers=headers, body='NOTHING_HERE_YET')
        resp = conn.get_response()
        return resp.read()

Im getting this error exception when accessing a external api that expects a multipart body.

{"code":"INVALID_REQUEST_EXCEPTION","description":"No multipart body found in the payload."}

Any help, links to samples or hint would be appreciated.

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