Filesonic curl code not working???

Status
Not open for further replies.

Lock Down

Active Member
2,122
2010
228
0
Hi I have the following code I use for link checkers. It works on most sites but filesonic.com return 200 ok but does not check the link. Anyone know what's wrong or have working code for filesonic? Thanks.

Code:
<?php
	 $ch = curl_init();
	 $data['redirect'] = '/'; 
	 $data['links'] = "http://www.filesonic.com/file/25157719/Available.zip\n";
	curl_setopt($ch, CURLOPT_URL, 'http://filesonic.com/link-checker');
	curl_setopt($ch, CURLOPT_REFERER, 'http://filesonic.com/link-checker');
	curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/4.73 [en] (X11; U; Linux 2.2.15 i686)');
	curl_setopt($ch, CURLOPT_HTTPHEADER,array("Expect:"));
	curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 8);
	curl_setopt($ch, CURLOPT_TIMEOUT, 8);
	curl_setopt($ch, CURLOPT_HEADER, true);
	curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
	curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
	curl_setopt($ch, CURLOPT_POST, 1);
	curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
	$page = curl_exec($ch);
	print  $page ;  
	curl_close($ch);
?>
 
2 comments
PHP:
$ch = curl_init();
	 $data['redirect'] = '/file/15033437/%E6%8C%81%E6%9C%88%E7%9C%9F%E7%94%B1~16%E5%B2%81%E5%87%8C%E8%BE%B1%E6%8F%B4%E4%BA%A4.rar'; 
	 $data['links'] = "http://www.filesonic.com/file/15033437/持月真由~16岁凌辱援交.rar\n";
	 $data['controls[submit]'] = "";
	curl_setopt($ch, CURLOPT_URL, 'http://www.filesonic.com/link-checker');
	curl_setopt($ch, CURLOPT_REFERER, 'http://www.filesonic.com/link-checker');
	curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/4.73 [en] (X11; U; Linux 2.2.15 i686)');
	curl_setopt($ch, CURLOPT_HTTPHEADER,array("Expect:"));
	curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 8);
	curl_setopt($ch, CURLOPT_TIMEOUT, 8);
	curl_setopt($ch, CURLOPT_HEADER, true);
	curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
	curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
	curl_setopt($ch, CURLOPT_POST, 1);
	curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($data));
	$page = curl_exec($ch);
	print  $page ;  
	curl_close($ch);

I think basically you left out www. in the filesonic domain, which is required.
 
Status
Not open for further replies.
Back
Top