Curl ignoring variables in url?

therock41

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\]http://www.design-shop-baalcke.de/e...nd 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 outputhttp://www.design-shop-baalcke.de/e...s/"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!
 
Top