2 messages in org.openoffice.fr.progRécupération de page html
FromSent OnAttachments
Ludovic CHEVALIERJan 26, 2007 10:38 am 
michel tanguyJan 26, 2007 10:07 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Récupération de page htmlActions...
From:Ludovic CHEVALIER (tens@no-log.org)
Date:Jan 26, 2007 10:38:35 am
List:org.openoffice.fr.prog

Bonjour.

Je souhaiterai récupérer des informations sur des pages web avec OOo basic. Cela fonctionne très bien avec l'exemple si dessous.

Sub Main dim leP as integer dim monURL as string dim laR as string leP=InputBox("Quel N°?") monURL=ConvertToURL _ ("http://www.spip.net/fr_rubrique" & leP & ".html") Open monURL for input as #1 line input #1, laR MsgBox laR,0,"Reponse serveur" line input #1, laR MsgBox laR,0,"Reponse serveur" line input #1, laR MsgBox laR,0,"Reponse serveur" line input #1, laR MsgBox laR,0,"Reponse serveur" line input #1, laR MsgBox laR,0,"Reponse serveur" line input #1, laR MsgBox laR,0,"Reponse serveur" Close #1 End Sub

Cela se complique lorsque l'on souhaite accéder sur des pages à accès restreints. Y-a t-il un moyen quelconque d'accéder à des pages où l'authentification est gérée par des cookies, avec OOo Basic???

Merci et à bientôt,

Ludo