curl-users
Re: Please Help - Posting
Date: Wed, 21 Jan 2004 00:12:21 +0100
On Tue, 20 Jan 2004 11:07:15 -0800
Kenneth.Quan_at_wellsfargo.com wrote:
> sorry for got to change url.
>
> Try: curl -A "Mozilla/4.0" -c cookie.txt -d "username=xchris&password=XXXX"
> http://ftorrent.min.nu/take-login.php
>
yes :)
it worked..
i used your solution and had to use cookies options...
now.. (sorry to bother you)
i can login but i can't post other data
i should post some options + one file but i get this from the server
Upload failed!
Invalid filename!
This situation is impossible to be created by hand (using mozilla)
I used now -F because of the file upload.
curl -b cookie.txt -F name=testing -F "file=@/IDE/p2p/movies/test.file" -F "descr=Prova Auto Uploader" -F type=2 -F html=no http://fwtorrent.mine.nu/take-upload.php > /home/xchris/result2.html
thank you for your help
xchris
here is the html:
<form enctype="multipart/form-data" action="take-upload.php" method="post">
<input type="hidden" name="MAX_FILE_SIZE" value="1000000" />
<table align="center" style="BORDER-TOP-STYLE: dotted; BORDER-RIGHT-STYLE: dotted; BORDER-LEFT-STYLE: dotted; BORDER-COLLAPSE: collapse; BORDER-BOTTOM-STYLE: dotted" borderColor="#c0c0c0" cellSpacing="5" cellPadding="5" border="1" id="table2">
<tbody>
<tr>
<td class="header">Announce URL:</td>
<td class="text"><b>http://fwtorrent.mine.nu/announce.php</b></td>
</tr>
<tr>
<td class="header">Data e ora:</td>
<td class="text"><b>Tue 20th Jan, 2004 10:54 pm</b></td>
</tr>
<tr>
<td class="header">Nome Torrent:</td>
<td class="text"><input type="text" name="name" size="60" /></td>
</tr>
<tr>
<td class="header">File Torrent:</td>
<td class="text"><input type="file" name="file" size="60" /><br />La dimensione massima è di 1000000 bytes.</td>
</tr>
<tr>
<td class="header">NFO File:</td>
<td class="text"><input type="file" name="nfo" size="60" /><br /><i>OPZIONALE</i></td>
</tr>
<tr>
<td class="header">Descrizione:</td>
<td class="text">
<textarea name="descr" rows="10" cols="60"></textarea><br />
<input type="checkbox" name="html" value="yes" />HTML
</td>
</tr>
<tr>
<td class="header">Categoria:</td>
<td class="text">
<select name="type">\n<option value="0">(scegli)</option>\n<option value="1">Film</option>
<option value="2">Musica</option>
<option value="13">Video Musicali</option>
<option value="3">TV</option>
<option value="4">Giochi</option>
<option value="5">Applicazioni</option>
<option value="7">Porno</option>
<option value="8">Immagini</option>
<option value="9">Anime</option>
<option value="10">Comics</option>
<option value="11">Books</option>
<option value="6">Varie</option>
</select>
-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
Received on 2004-01-21