Skip to content

Comments

Fixed problem with post parameters passed as 3rd argument to Request::create()#16

Open
rafal-tobola wants to merge 1 commit intozeroem:masterfrom
rafal-tobola:master
Open

Fixed problem with post parameters passed as 3rd argument to Request::create()#16
rafal-tobola wants to merge 1 commit intozeroem:masterfrom
rafal-tobola:master

Conversation

@rafal-tobola
Copy link

When doing:

$request = Symfony\Component\HttpFoundation\Request::create(
    'example.com',
    'POST',
    [
        'some_key'       => 'some_val',
        'some_other_key' => 'some_other_val',
    ]
);

those parameters needs to be converted into http query string inside RemoteHttpKernel::setPostFields() to be properly send.

When doing:
$request = Symfony\Component\HttpFoundation\Request::create(
    'example.com',
    'POST',
    [
    	'some_key'       => 'some_val',
	'some_other_key' => 'some_other_val',
    ]
);
those parameters needs to be converted into http query string
inside RemoteHttpKernel::setPostFields() to be properly send.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant