http://localhost/descargar.do?id=*****
Para poder bajar los archivos necesito autenticarme con el servidor.
¿Como hago para autenticarme?...
esta es la secuencia de logueo
Código:
y me gustaria poder bajar todos los archivos que hay entre un rango de 'id'http://*****/ingresar.do POST /ingresar.do HTTP/1.1 Host: ******** User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:14.0) Gecko/20100101 Firefox/14.0.1 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Language: es-es,es;q=0.8,en-us;q=0.5,en;q=0.3 Accept-Encoding: gzip, deflate DNT: 1 Connection: keep-alive Referer: http://****** Cookie: JSESSIONID=****** Content-Type: application/x-www-form-urlencoded Content-Length: 69 administrador=0&username=***&password=*****&Submit=Ingresar HTTP/1.1 302 Moved Temporarily Date: Fri, 02 Nov 2012 17:38:43 GMT Server: Oracle-Application-Server-11g Cache-Control: no-cache,no-store,max-age=0 Pragma: No-cache Location: http://**** Expires: Thu, 01 Jan 1970 00:00:00 GMT X-Powered-By: Servlet/2.5 JSP/2.1 Keep-Alive: timeout=5, max=1500 Connection: Keep-Alive Transfer-Encoding: chunked Content-Type: text/html Content-Language: en
tendria que usar un
Código PHP:
for (i=inicio;i<tope;i++)
{
...
}
pero no se como hacerlo ya que hay varios tipos de archivos php,zip,rar,jpg,doc,docx....
me dan una manita explicandome o si tienen algo ya realizado se les agradece