forms - What breaks this code from PHP 5.2 to 5.4 -


<?php $values = '';  foreach($_request  $key => $val) {     $values .= $key.'='.$val.'&'; }  $url = 'https://someurl.com';  $ch = curl_init( $url ); curl_setopt( $ch, curlopt_post, 1); curl_setopt( $ch, curlopt_postfields, $values); curl_setopt( $ch, curlopt_followlocation, 1); curl_setopt( $ch, curlopt_header, 0); curl_setopt( $ch, curlopt_returntransfer, 1);  $response = curl_exec( $ch );  echo ($response);  ?> 

something breaking code between php 5.2 , 5.4, i'm not entirely sure what. i've been able verify request variables exist, , values correct after foreach loop. appears issue curl , response not echo. receive no errors, , nothing returned if curl not return response.

try curl_setopt($ch, curlopt_ssl_verifypeer, false);


Comments

Popular posts from this blog

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -