Skip to content
WJunction - Webmaster Forum

Help with Uploading.com batch Link Checker and Curl ..

Status
Not open for further replies.
Has anyone been able to get a batch link check to uploading.com to work from a php script usng curl? I get a 503 server busy every time.
All help appreciated.
 

9 comments

No I never used the batch link check for their site. I just checked for a phrase on the download page to confirm the link was working on my link checker. I've never had the need to do large amount of back link checks for uploading.com. Only Hotfile and Rapidshare.

Have you CURLOPT_FOLLOWLOCATION and CURLOPT_RETURNTRANSFER?

EDIT: maybe this should be moved to Technical Help Desk Support
 
Yes I have them both. I have it working for RS, HF, MU, FF, FS but keep getting that 503 error on UP. I now get 100s of UP links a day and doing an individual link checks takes an enormous amount of resources and time.

Thanks for the reply.

PS: Your linkzbot.com site does not work for me or in zend2.com.
 
Yes I have them both. I have it working for RS, HF, MU, FF, FS but keep getting that 503 error on UP. I now get 100s of UP links a day and doing an individual link checks takes an enormous amount of resources and time.

Thanks for the reply.

Ya it does. I can totally understand that. I used to check over 300k links a day.

Uploading.com uses ajax in it's link checker unlike hotfile, rapidshare, filefactory etc. which may be causing the problem. No idea what FS is. It would be so much easier if they had a propper api like RS, sendspace etc

If you want PM me what you have and I'll have a look at it. Going to a gig tonight so it will be tomorrow before I get to look at it though.
 
Here you go.
HTTP/1.1 503 Server too busy Server: nginx Date: Wed, 24 Feb 2010 22:03:00 GMT Content-Type: text/html Transfer-Encoding: chunked Connection: keep-alive Set-Cookie: SID=7b5c1b856aff24f1a68865a611da5832; expires=Thu, 25-Feb-2010 00:03:00 GMT; path=/; domain=.uploading.com Set-Cookie: cache=99c5010e54c36a91c0fa9b08e900dd20; expires=Wed, 24-Feb-2010 23:03:00 GMT; path=/; domain=.uploading.com
=> http://uploading.com/files/chec...=> 0.040822 [redirect_time] => 0[/QUOTE]
 
Here is the code as Mr Happy box is still full. :)

PHP:
<?php
echo  "<br><pre><xmp>"; 
  $data['urls'] = "http://uploading.com/files/c8764714";
	$ckfile = tempnam ("/tmp", "CURLCOOKIE");
	$ch = curl_init ("http://uploading.com/filechecker/");
	curl_setopt ($ch, CURLOPT_COOKIEJAR, $ckfile); 
	curl_setopt ($ch, CURLOPT_RETURNTRANSFER, true);
	$output = curl_exec ($ch);
	$ch = curl_init();
	curl_setopt($ch, CURLOPT_URL,'http://uploading.com/filechecker/');
	curl_setopt($ch, CURLOPT_COOKIEFILE, $ckfile);
	curl_setopt($ch, CURLOPT_REFERER,'http://uploading.com');
	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, 60);
	curl_setopt($ch, CURLOPT_TIMEOUT, 60);
	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);
	$content = curl_exec($ch);
	curl_close($ch);

echo  "<br>$content<pre><xmp>"; echo  "<br>"; print_r($_REQUEST);

?>
 
Status
Not open for further replies.

About the author

L
Active Member · Joined
2,122
Messages
228
Reactions
63
Points

Advertise on WJunction

Reach 1000's of webmasters, hosts & affiliates. Banner & sponsored-thread slots available.

Contact us
Back
Top Bottom