[guide] Uploading to Hofile using curl

Status
Not open for further replies.

desiboy

Active Member
1,544
2008
7
0
i1141_hotfile-logo.png





What ?
Upload to hotfile.com using curl from the terminal .


Requirements ?

  • curl preferably on Linux
  • Terminal Access

How ?
Code:
curl -T [COLOR=Navy]FILENAME.RAR[/COLOR] ftp.hotfile.com --user [COLOR=Red]UserName[COLOR=Black]:[COLOR=Green]Your[/COLOR][/COLOR][COLOR=DarkGreen]Password[/COLOR][/COLOR]
Screen





Extending ?

logging into hf using curl and echoing out the download link ..sorry I cannot post that code , do it your self :)





 
19 comments
I believe
curl -T FILENAME.RAR ftp.hotfile.com --user UserName:YourPassword

should be
curl -T FILENAME.RAR ftp.hotfile.com -user UserName:YourPassword

Remember that linux must use the proper capitalization. this is not THIS.
 
hmm, it isn't possible to make this work with php on a website right?
The code he provided is to be run from the command line, so no, pasting this code in a php script would only give errors unless you used it in the exec() , system() or passthru() function.
 
Thanks for this tutorial

was looking for something like that before


[slide]http://img202.imageshack.us/img202/2070/screenshot1ij.png[/slide]
 
This method is great, since many shared hosts don't allow rapidleech, but give you access to ssh.
thanks , is there similar way to upload to rapidshare?

This method won't work with rapidshare, since it doesn't allow FTP upload, but it's possible to make curl send POST requests - just sniff some traffic to get needed values, but it might take some time to get it proper.
 
Status
Not open for further replies.
Back
Top