Curl ignoring variables in url?


New Member
I am working on a crawl script to read ratings from a webshop.The curl part is now making me problems, since it does not retrieve the right content. I select the urls from the database in batches with an ajax script. I give the curl the correct url to the page with the ratings, but Curl is retrieving the page without the variable part in the url.This is the url I am passing onto Curl: \[code\]$actualurl\[/code\] grün RAL6005"&ViewAction=ViewProductRating(This is the page I want to read all 6 ratings (Produktbewertungen) from.)But with the curl call I get contents from this page, which is the same without the viewAction, I echoed the output"Briefkastenständer Bobiround grün RAL6005"My Curl call looks like this:\[code\] $ch = curl_init(); curl_setopt($ch, CURLOPT_TIMEOUT, 30); curl_setopt($ch, CURLOPT_USERAGENT, $agent); curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); curl_setopt($ch, CURLOPT_URL, $actualurl); //read content of $url $result = curl_exec ($ch); curl_close ($ch);\[/code\]Why is Curl ignoring the last part of the url (with \[code\]&ViewAction=ViewProductRating\[/code\])Thank you so much I am still new to curl!