Hi. I'm having some trouble getting curl to redirect users when the string "&item=" is in the URL followed by a variable containing a number.
For example, this: $url2 = "http://offer.ebay.com/ws/eBayISAPI.dll?MfcISAPICommand=BinConfirm&fb=1&pt=US_Gift_Certificates&uiid=&1368064539&co_partnerid=&quantity=1&item=$id"; curl_setopt($ch, CURLOPT_URL, "$url2");
will simply give me a blank page. It appears to be a combination of the different values being posted, but I can't figure out why curl can't handle it correctly. It redirects correctly if I add a letter in front of $id such as &items=a$id
Thanks for the help.
If you do a [man]var_dump/man on $id, what is outputted?
It should be like
"http://offer.ebay.com/ws/eBayISAPI.dll?MfcISAPICommand=BinConfirm&fb=1&pt=US_Gift_Certificates&uiid=&1368064539&co_partnerid=&quantity=1&item=".$id $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "$url2");