je souhaiterais récupérer l'URL des résultats de recherche d'un forum. La saisie du terme de recherche se fait ici http://forum.telecharger.01net.com/inde ... siontype=s
on saisit un terme quelconque (par exemple "ordinateur") et on sélectionne "Rechercher dans les messages", et enfin => Lancer le recherche
Si vous faites l'essai vous verrez dans la barre d'adresse de votre navigateur cette URL, une fois la recherche effectuée http://forum.telecharger.01net.com/inde ... tesearch=1
Le problème c'est que ça ne donne pas la vraie URL des résultats, c'est pour ça que j'ai pensé à LiveHTTPHeaders, dont le log donne ces détails
Code : Tout sélectionner
http://forum.telecharger.01net.com/index.php?forum=telecharger&page=forum2&subcat=&category=16&systemcreatesearch=1
POST /index.php?forum=telecharger&page=forum2&subcat=&category=16&systemcreatesearch=1 HTTP/1.1
Host: forum.telecharger.01net.com
User-Agent: Mozilla/5.0 (X11; U; Linux i686; fr; rv:1.9.0.3) Gecko/2008092700 SUSE/3.0.3-2.2 Firefox/3.0.3
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: fr,fr-fr;q=0.8,en-us;q=0.5,en;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Referer: http://forum.telecharger.01net.com/index.php?page=forum2&forum=telecharger&category=16&systemsessiontype=s
Cookie: XXX
Content-Type: application/x-www-form-urlencoded
Content-Length: 95
where=post&title=ordinateur&author=&dateconf=NO&day=17&month=8&year=2008&nbanswerconf=NO&nbanswer=
HTTP/1.x 200 OK
Date: Sat, 18 Oct 2008 20:39:37 GMT
Server: Apache/2.2.8 (Unix) PHP/5.2.5
X-Powered-By: PHP/5.2.5
Set-Cookie: keytelecharger=XXX; expires=Sun, 18-Oct-2009 20:39:37 GMT; path=/
Set-Cookie: XXX
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
X-Software: X2board-2.2
Vary: Accept-Encoding,User-Agent
Content-Encoding: gzip
Content-Length: 10548
Keep-Alive: timeout=1, max=1000
Connection: Keep-Alive
Content-Type: text/html
http://forum.telecharger.01net.com/inde ... tesearch=1
forum=telecharger&page=forum2&subcat=&category=16&
where=post&title=ordinateur&author=&dateconf=NO&day=17&month=8&year=2008&nbanswerconf=NO&nbanswer=
mais ça ne donne rien ou des messages d'erreur dans le genre 'vous devez saisir au moins un terme de recherche'. Avec cURL ce serait sans doute plus facile, mais là j'ai juste besoin de récupérer cette URL une bonne fois pour toutes, pour la mettre en accès rapide (marque-pages)
Est-ce que quelqu'un aurait une idée ?
Merci Clin d'oeil