| To: | REALbasic NUG French <realbasic-nug.fr@lists.realsoftware.com> |
|---|---|
| Subject: | Re: HTML viewer |
| From: | Franck Perez <perez.franck@gmail.com> |
| Date: | Sun, 28 Feb 2010 15:38:08 +0100 |
| Authentication-results: | mx.google.com; spf=neutral (google.com: 74.124.194.228 is neither permitted nor denied by best guess record for domain of realbasic-nug.fr-bounces@lists.realsoftware.com) smtp.mail=realbasic-nug.fr-bounces@lists.realsoftware.com; dkim=neutral (body hash did not verify) header.i=@gmail.com |
| Delivered-to: | listarchive@realsoftware.com |
| Dkim-signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:content-type; bh=Vr+8t21MY9LwvzFoJHVCxdW+/GMz1v8H8cctlzhQ6Dk=; b=wciOXiBzSDm251oVqqH/qRdIdBlsbG3tOoBbatvOazFTwdeGb72X15Lkbzbvp4Izhr mw79I1NDWyw5wziNif0JsWrl6WP1zmf2G/HpQr0wXLx4AbLTfvjyyY5Ia89J1xg8h4TO WoblVztJRbh1g/7aE5yLX41+aVyO31jXBP+CQ= |
| Domainkey-signature: | a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=KtL7ghon6pFuyf5PQRAmJ22v59okka2ypNL8ekCxOisrVG5ojHpeDsv/3Z3BAMjJyY mNyTsMfJEC+N5RzGypnMgBZzj8cggnm4BlE1/BNB5Kuivqny5qh8b4QiqCGzD6icbuET HV37Z1CvU/mXlT09pJJa5k/3wPTcEAomeUAHo= |
| In-reply-to: | <B7A77E37-6B07-4617-BA07-E9E98970F3DC@cretaux.fr> |
| References: | <1B764032-FDD5-41B9-959C-34877861CAAA@cretaux.fr> <BAD1B03B-10C0-4D38-BF98-AF345580E118@edlr.fr> <B7A77E37-6B07-4617-BA07-E9E98970F3DC@cretaux.fr> |
| Reply-to: | REALbasic NUG French <realbasic-nug.fr@lists.realsoftware.com> |
| Sender: | realbasic-nug.fr-bounces@lists.realsoftware.com |
J'imagine que l'adresse contenue dans EURL.text n'est pas strictement " http://cretaux.fr/gifour/index.html" mais un nom de domaine qui est redirigé vers cette dresse, non ? (genre http://www.cretaux.org/") Les browser Web (ou le Webkit) s'occupent de façon transparente de gérer cette redirection mais lorsque l'on va chercher la page par un socket, on obtient que l'erreur 301 qu'il faut parser soi-même. 2010/2/23 Antoine <antoine@cretaux.fr> > cela n'explique pas pourquoi.. > > Le 23 févr. 2010 à 19:59, Eric dLR a écrit : > > > > > Le 23 févr. 10 à 18:11, Antoine a écrit : > > > >> Ne pouvantt pas récupérer directement le code html je suis obligé de > faire > >> > >> Ecode.text = socket1.get(EURL.text) > >> HTMLViewer1.LoadURL(Eurl.text) > >> > >> jusque là pas de problème . Sauf que le socket me remonte une erreur > alors que ma page s'affiche correctement > >> > >> <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> > >> <HTML><HEAD> > >> <TITLE>301 Moved Permanently</TITLE> > >> </HEAD><BODY> > >> <H1>Moved Permanently</H1> > >> The document has moved <A HREF="http://cretaux.fr/gifour/index.html > ">here</A>.<P> > >> </BODY></HTML> > >> > >> > >> Une explication ou une solution. Merci > > > > Quel est la valeur de la propriété HTTPSocket.HTTPSTatusCode ? Dans ce > cas, je subodore qu'elle doit renvoyer 301. > > Pour plus d'infos: > > <http://fr.wikipedia.org/wiki/Liste_des_codes_HTTP> > > <http://www.w3.org/Protocols/HTTP/HTRESP.html> > > > > Eric. > > > > > > > > > > > > > |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: thread, Antoine |
|---|---|
| Previous by Thread: | Re: HTML viewer, Antoine |
| Next by Thread: | Illegal, Antoine |
| Indexes: | [Date] [Thread] [Top] [All Lists] |