HttpKernel/RemoteHttpKernel.php
private function setPostFields(CurlRequest $curl, Request $request) {
        $postfields = null;
        $content = $request->getContent();

        if (!empty($content)) {
            $postfields = $content;
        } else if (count($request->request->all()) > 0) {
            $postfields = $request->request->all();
        }

        $curl->setOption(CURLOPT_POSTFIELDS, $postfields);
    }
private function setPostFields(CurlRequest $curl, Request $request) {
        $postfields = null;
        $content = $request->getContent();

        if (!empty($content)) {
            $postfields = $content;
        } else if (count($request->request->all()) > 0) {
            $postfields = $request->request->all();
        }

        $curl->setOption(CURLOPT_POSTFIELDS, $postfields);
    }
private function setPostFields ( CurlRequest $ curl , Request $ request ) { $ postfields = null ; $ content = $ request -> getContent ( ) ; if ( ! empty ( $ content ) ) { $ postfields = $ content ; } else if ( count ( $ request -> request -> all ( ) ) > 0 ) { $ postfields = $ request -> request -> all ( ) ; } $ curl -> setOption ( CURLOPT_POSTFIELDS , $ postfields ) ; }
Populate the POSTFIELDS option

@param CurlRequest $curl cURL request object
@param Request $request the Request object we're populating
Populate the POSTFIELDS option