142a143,144 > /* This bit of code was distrupting the lists which did not expect the > * userId to be a part of the url 146a149,150 > * > */ 173c177 < curl_setopt($ci, CURLOPT_URL, $url); --- > 175a180 > curl_setopt($ci, CURLOPT_URL, $url); 176a182,184 > if (isset($postfields)) { > curl_setopt($ci, CURLOPT_POSTFIELDS, $postfields); > } 179a188,200 > if (isset($postfields)) { > curl_setopt($ci, CURLOPT_URL, "{$url}?{$postfields}"); > } > else > { > curl_setopt($ci, CURLOPT_URL, $url); > } > break; > > default: > curl_setopt($ci, CURLOPT_URL, $url); > break; > 181,183c202 < if (isset($postfields)) { < curl_setopt($ci, CURLOPT_POSTFIELDS, $postfields); < } --- >