cURL issue

hey guys,

when I try and get the

curl_getinfo($curl, CURLINFO_EFFECTIVE_URL)

for “ask.com” as the $curl, I get

http://www.ask.com?o=0&l=dir

as the answer.

It is missing a slash after the .com. I’m not sure why this is happening. Whenever I type ask.com into any browser, it comes up with a slash after the .com like:

http://www.ask.com/?o=0&l=dir

Any ideas why cURL isn’t seeing this slash after the .com ??

Because it doesn’t need the slash. =p

I’m not sure why exactly cURL chooses to leave out the slash, but it doesn’t have to be there. It makes more sense that it should have the slash (since the HTTP request would have the / as the page to GET), but it doesn’t need it for it to be valid.

Haha lame! Okay thanks.