<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="http://forum.ubuntu-fr.org/extern.php?action=feed&amp;tid=1002731&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Forum Ubuntu-fr.org / Wget et erreur 403]]></title>
		<link>http://forum.ubuntu-fr.org/viewtopic.php?id=1002731</link>
		<description><![CDATA[Les sujets les plus récents dans Wget et erreur 403.]]></description>
		<lastBuildDate>Thu, 09 Aug 2012 09:23:12 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Réponse à&#160;:  Wget et erreur 403]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=10309871#p10309871</link>
			<description><![CDATA[<p>Bon, me suis pas encore penché sur ton pb.</p><p>Va falloir que je me crée un compte bidon pour faire des tests <img src="http://forum.ubuntu-fr.org/img/smilies/tongue.png" width="15" height="15" alt="tongue" /></p>]]></description>
			<author><![CDATA[dummy@example.com (Grünt)]]></author>
			<pubDate>Thu, 09 Aug 2012 09:23:12 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=10309871#p10309871</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  Wget et erreur 403]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=10292411#p10292411</link>
			<description><![CDATA[<p>Si tu trouves j&#039;veux bien me porter volontaire pour détourer ton avatar si tu veux <img src="http://forum.ubuntu-fr.org/img/smilies/tongue.png" width="15" height="15" alt="tongue" /></p>]]></description>
			<author><![CDATA[dummy@example.com (Ras&#039;)]]></author>
			<pubDate>Tue, 07 Aug 2012 23:03:58 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=10292411#p10292411</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  Wget et erreur 403]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=10292341#p10292341</link>
			<description><![CDATA[<p>Demain j&#039;ai du script à faire au boulot, je serai dans le bain. J&#039;en profiterai pour y jeter un oeil avec le cerveau plein de café.</p>]]></description>
			<author><![CDATA[dummy@example.com (Grünt)]]></author>
			<pubDate>Tue, 07 Aug 2012 23:00:02 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=10292341#p10292341</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  Wget et erreur 403]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=10292241#p10292241</link>
			<description><![CDATA[<p>Ça n&#039;a pas l&#039;air de mieux marcher <img src="http://forum.ubuntu-fr.org/img/smilies/hmm.png" width="15" height="15" alt="hmm" /></p>]]></description>
			<author><![CDATA[dummy@example.com (Ras&#039;)]]></author>
			<pubDate>Tue, 07 Aug 2012 22:52:29 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=10292241#p10292241</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  Wget et erreur 403]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=10292161#p10292161</link>
			<description><![CDATA[<p>Je pensais plutôt à utiliser comme référant l&#039;URL de la page depuis laquelle il faut uploader les photos. Ça me paraît logique.</p>]]></description>
			<author><![CDATA[dummy@example.com (Grünt)]]></author>
			<pubDate>Tue, 07 Aug 2012 22:40:49 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=10292161#p10292161</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  Wget et erreur 403]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=10292141#p10292141</link>
			<description><![CDATA[<p>J&#039;ai testé en mettant google coomme référant mais ça n&#039;a rien donné de plus <img src="http://forum.ubuntu-fr.org/img/smilies/hmm.png" width="15" height="15" alt="hmm" /></p>]]></description>
			<author><![CDATA[dummy@example.com (Ras&#039;)]]></author>
			<pubDate>Tue, 07 Aug 2012 22:39:28 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=10292141#p10292141</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  Wget et erreur 403]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=10292091#p10292091</link>
			<description><![CDATA[<p>Idée comme ça : le 403 ça serait pas un pb de <a href="http://fr.wikipedia.org/wiki/R%C3%A9f%C3%A9rant">référant</a> ?</p>]]></description>
			<author><![CDATA[dummy@example.com (Grünt)]]></author>
			<pubDate>Tue, 07 Aug 2012 22:34:21 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=10292091#p10292091</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  Wget et erreur 403]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=10292011#p10292011</link>
			<description><![CDATA[<p>J&#039;veux pas apprendre ! <img src="http://forum.ubuntu-fr.org/img/smilies/yikes.png" width="15" height="15" alt="yikes" /></p><p>Plus sérieusement j&#039;n&#039;ai pas le temps d&#039;apprendre. J&#039;ai eu l&#039;aide de kanor qui m&#039;proposait un script python, peut être qu&#039;il parle du même...<br />Faut juste que j&#039;trouve comment intégrer ça dans un bout de code dans un cron, mais le plus dur est fait <img src="http://forum.ubuntu-fr.org/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><p>Celà dit je laisse le sujet ouvert quelques temps, au cas ou quelqu&#039;un comprenne le pourquoi du comment de ce 403</p>]]></description>
			<author><![CDATA[dummy@example.com (Ras&#039;)]]></author>
			<pubDate>Tue, 07 Aug 2012 22:30:19 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=10292011#p10292011</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  Wget et erreur 403]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=10291951#p10291951</link>
			<description><![CDATA[<p>BAh, la dernière fois que j&#039;ai voulu faire ça je suis passé par ce script (que j&#039;ai lu pour vérifier si y&#039;avait pas de merde dedans, sait-on jamais), et ça a marché nickel :</p><p><a href="http://pastebin.com/CSAyAh1r">http://pastebin.com/CSAyAh1r</a></p><p>Trouvé en googlant.</p><p>Après, si tu veux apprendre à le faire toi-même c&#039;est une autre paire de manches.</p><p>Edit : Oublie ce post, c&#039;est un script pour RÉCUPÉRER un tumblr, pas pour uploader. Lu trop vite. <img src="http://forum.ubuntu-fr.org/img/smilies/big_smile.png" width="15" height="15" alt="big_smile" /></p>]]></description>
			<author><![CDATA[dummy@example.com (Grünt)]]></author>
			<pubDate>Tue, 07 Aug 2012 22:26:57 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=10291951#p10291951</guid>
		</item>
		<item>
			<title><![CDATA[Wget et erreur 403]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=10290231#p10290231</link>
			<description><![CDATA[<p>Bonjour <img src="http://forum.ubuntu-fr.org/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><p>J&#039;essai d&#039;écrire un script qui me permette de mettre automatiquement des photos sur tumblr, pour l&#039;instant j&#039;en suis à la phase ou je teste les lignes de commande, notamment celles de wget.</p><p>Je commence par me logger sur tumblr avec la commande suivante :</p><div class="codebox"><pre><code>wget --no-check-certificate --save-cookies cookies.txt --post-data &#039;user[email]=monemail&amp;user[password]=monpassword&#039; https://www.tumblr.com/login</code></pre></div><p>qui a l&#039;air de fonctionner correctement puisqu&#039;elle ne renvoie pas d&#039;erreur et que le fichier de cookies est le suivant :</p><div class="codebox"><pre><code># HTTP cookie file.
# Generated by Wget on 2012-08-07 22:35:16.
# Edit at your own risk.

www.tumblr.com	FALSE	/	FALSE	1375908075	pfe	137464654
www.tumblr.com	FALSE	/	TRUE	1375908075	pfs	blabliblo
www.tumblr.com	FALSE	/	FALSE	1375908075	pfp	untrucaussi
www.tumblr.com	FALSE	/	FALSE	1375908075	pfu	533543567
www.tumblr.com	FALSE	/	FALSE	1659732075	tmgioct	GrnxF
.tumblr.com	TRUE	/	FALSE	1375908075	logged_in	1</code></pre></div><p>(le logged_in 1 m&#039;inspire confiance, les autres valeurs ont été modifiées par souci de confidentialité)</p><br /><p>Là où ça se corse c&#039;est quand je veux mettre une nouvelle note, je commence par faire simple avec une note de texte où je rempli l&#039;en tête et le texte (post_one et post_two) avec des conneries en utilisant la commande suivante :</p><div class="codebox"><pre><code>wget -d --no-check-certificate --load-cookies cookies.txt --post-data &#039;post_one=Test&amp;post_two=grnx&#039;  http://www.tumblr.com/blog/lenomdemontumblr/new/text</code></pre></div><p>Ici, wget me renvoie le message suivant (j&#039;ai mis l&#039;option -d pour qu&#039;il soit un peu plus bavard) :</p><div class="codebox"><pre class="vscroll"><code>ras@debian:~$ wget -d --no-check-certificate --load-cookies cookies.txt --post-data &#039;post_one=Test&amp;post_two=grnx&#039;  http://www.tumblr.com/blog/lenomdemontumblr/new/text
Setting --check-certificate (checkcertificate) to 0
Setting --load-cookies (loadcookies) to cookies.txt
Setting --post-data (postdata) to post_one=Test&amp;post_two=grnx
DEBUG output created by Wget 1.12 on linux-gnu.


Stored cookie www.tumblr.com -1 (ANY) / &lt;permanent&gt; &lt;insecure&gt; [expiry 2013-08-07 22:41:15] pfe 1375908075

Stored cookie www.tumblr.com -1 (ANY) / &lt;permanent&gt; &lt;secure&gt; [expiry 2013-08-07 22:41:15] pfs wJMiklJ0cbGN7jzvpneOJpcJg

Stored cookie www.tumblr.com -1 (ANY) / &lt;permanent&gt; &lt;insecure&gt; [expiry 2013-08-07 22:41:15] pfp uzjVOgiXXTXygLn1oa5suQLrbofxFDYaX91DtClt

Stored cookie www.tumblr.com -1 (ANY) / &lt;permanent&gt; &lt;insecure&gt; [expiry 2013-08-07 22:41:15] pfu 53206813

Stored cookie www.tumblr.com -1 (ANY) / &lt;permanent&gt; &lt;insecure&gt; [expiry 2022-08-05 22:41:15] tmgioct GUUbQJmxcOexmKiUQ57AWjCF

Stored cookie tumblr.com -1 (ANY) / &lt;permanent&gt; &lt;insecure&gt; [expiry 2013-08-07 22:41:15] logged_in 1
--2012-08-07 22:38:21--  http://www.tumblr.com/blog/lenomdemontumblr/new/text
Résolution de www.tumblr.com... 50.97.143.24
Caching www.tumblr.com =&gt; 50.97.143.24
Connexion vers www.tumblr.com|50.97.143.24|:80...connecté.
Created socket 3.
Releasing 0x092e0cc0 (new refcount 1).

---request begin---
POST /blog/lenomdemontumblr/new/text HTTP/1.0
User-Agent: Wget/1.12 (linux-gnu)
Accept: */*
Host: www.tumblr.com
Connection: Keep-Alive
Cookie: pfe=1375908075; pfp=uzjVOgiXXTXygLn1oa5suQLrbofxFDYaX91DtClt; pfu=53206813; tmgioct=GUUbQJmxcOexmKiUQ57AWjCF; logged_in=1
Content-Type: application/x-www-form-urlencoded
Content-Length: 27

---request end---
[POST data: post_one=Test&amp;post_two=grnx]
requête HTTP transmise, en attente de la réponse...
---response begin---
HTTP/1.1 403 Forbidden
Date: Tue, 07 Aug 2012 20:44:21 GMT
Server: Apache
P3P: CP=&quot;ALL ADM DEV PSAi COM OUR OTRo STP IND ONL&quot;
Expires: Fri, 01 Jan 1990 00:00:00 GMT
Pragma: no-cache
Cache-Control: no-cache, must-revalidate
Vary: Accept-Encoding
X-Tumblr-Usec: D=424521
Content-Length: 1860
Connection: close
Content-Type: text/html; charset=UTF-8

---response end---
403 Forbidden
Closed fd 3
2012-08-07 22:38:22 ERREUR 403: Forbidden.</code></pre></div><br /><p>Pourquoi me renvoie-t-il cette erreur 403 ?<br />J&#039;ai fait des recherches sur le net qui proposait la solution du user-agent alternatif, j&#039;en ai essayé plusieurs mais sans succès... Quelqu&#039;un aurait une autre idée ?</p>]]></description>
			<author><![CDATA[dummy@example.com (Ras&#039;)]]></author>
			<pubDate>Tue, 07 Aug 2012 20:49:33 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=10290231#p10290231</guid>
		</item>
	</channel>
</rss>
