Results 41 to 50 of 72
-
26th Jul 2011, 06:31 AM #41Member
I know that, I'm trying to make one for downloading, could you give a help?
Follow the code for filesonic:
Code:$ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "http://www.filesonic.com/user/login"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_POSTFIELDS, "email=xxxxxxxxx&redirect=%2F&password=xxxxxxxx&rememberMe=1"); $output = curl_exec($ch); curl_close($ch); echo $output;
-
26th Jul 2011, 07:04 AM #42Member
Thanks for the share gunda this is a very good learning experience!
If anyone has insight on how to measure file upload progress, can they explain in post or via PM. Thanks!
-
28th Jul 2011, 04:32 PM #43OPYou can call me G
-
28th Jul 2011, 04:36 PM #44It begins...
Hint: Use the API -> http://api.filesonic.com/doc
-
28th Jul 2011, 05:56 PM #45Member
I'm not familiar with cookie, can you make a code example for me?
Code:p=md5(md5(password)email) PHP exemple: $clearTextPassword = '1234'; $email = 'a@b.c'; $encryptedPassword = md5(md5($clearTextPassword) . $email);
-
29th Jul 2011, 04:49 AM #46MemberWebsite's:
PasteBot.appspot.comAre you a Premium member ?
If NO, then the API is of no use to you.
If you're not a Premium member, then there is no need to login to your account.
I think if you do something like this:
Code:opener.open("http://www.google.com/recaptcha/api/challenge?k=6LdNWbsSAAAAAIMksu-X7f5VgYy8bZiiJzlP83Rl&ajax=1&cachestop="+str(random.random()))
You'll get the captcha Image.
-
29th Jul 2011, 03:29 PM #47Member
I'm premium.
-
29th Jul 2011, 03:41 PM #48It begins...
Use this URL format (replace the obvious vars) to get an xml response:
Code:http://api.filesonic.com/link?method=getDownloadLink&u=EMAIL&p=PASSWORD&ids=FILESONICID&format=xml
Then, just use php's json_decode function to decode the response and extract the links using the appropriate array hierarchy.
-
29th Jul 2011, 09:27 PM #49Member
Yea that seems to be the easiest solution for ricardo.
Do you know of a way to report the current upload or download speed of curl through php? I'd rather use curl for downloading and uploading, but with no progress I'd have to use the example from RL of sending chunks through a socket?
-
30th Jul 2011, 04:19 AM #50MemberWebsite's:
PasteBot.appspot.comI don't know how it's done in PHP, but
in Python, there's a function called urllib.urlretrieve()
It takes an argument called reporthook, which takes a hook function.
this hook function takes three arguments
count of blocks, the size of the block, total size of all the blocks(filesize)
in bytes.
Source: docs
It's tailored to do what you need.
EDIT: Please dont highjack this thread. Instead make a new thread, for your queries.
EDIT_AGAIN: Maybe you can use a subprocess, to download the file in python, and do the rest with PHP.
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
[help] Uploading images to imageporter with curl
By hover in forum Web Development AreaReplies: 3Last Post: 23rd Apr 2011, 10:23 PM -
Help with Uploading.com batch Link Checker and Curl ..
By Lock Down in forum Webmaster ResourcesReplies: 9Last Post: 3rd Dec 2010, 02:31 AM -
[linux] Uploading to FileServe via curl
By Snell in forum Tutorials and GuidesReplies: 0Last Post: 19th Jun 2010, 12:52 PM -
[guide] Uploading to Hofile using curl
By desiboy in forum Tutorials and GuidesReplies: 19Last Post: 30th May 2010, 07:40 PM
themaCreator - create posts from...
Version 3.53 released. Open older version (or...