Skip to content
This repository was archived by the owner on Jul 14, 2025. It is now read-only.
This repository was archived by the owner on Jul 14, 2025. It is now read-only.

Improvement to iSendARequestWithFormData #57

Description

@andyOstrava

Hi!

The Web API Extension is exactly what I was looking for and has been a huge help. When I tried to use iSendARequestWithFormData, however, I found that it was losing any headers I had already added.

I wanted to suggest something like the following at line 198:

        $this->addHeader('Content-Type', 'application/x-www-form-urlencoded');
        $this->request = new Request($method, $url, $this->headers, http_build_query($fields, null, '&'));

Is that reasonable? Many apologies if I'm missing something.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions