Contenu | Rechercher | Menus

Annonce

Toute l'équipe d'ubuntu-fr vous souhaite un joyeux Noël et une bonne et heureuse année 2018.

Ubuntu 16.04 LTS
Commandez vos DVD et clés USB Ubuntu-fr !

Pour en savoir un peu plus sur l'équipe du forum.

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

nombre réponses : 25

#0 -1 »  Police bizarre... » Le 10/07/2017, à 15:30

chris_wafer
Réponses : 39

En mettant à jour Ubuntu 14.04.5 LTS, j'ai des problèmes d'affichages.
Par-export lors d'un export PDF dans LibreOffice :
mini_317918aaa.jpg

La police est bizarre en haut à gauche.

Une idée?

Merci.

#1 Re : -1 »  Police bizarre... » Le 13/07/2017, à 22:12

chris_wafer
Réponses : 39
:~$cat /etc/apt/sources.list

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://fr.archive.ubuntu.com/ubuntu/ trusty main restricted
deb-src http://fr.archive.ubuntu.com/ubuntu/ trusty main restricted universe multiverse #Added by software-properties

## Major bug fix updates produced after the final release of the
## distribution.
deb http://fr.archive.ubuntu.com/ubuntu/ trusty-updates main restricted
deb-src http://fr.archive.ubuntu.com/ubuntu/ trusty-updates main restricted universe multiverse #Added by software-properties

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://fr.archive.ubuntu.com/ubuntu/ trusty universe
deb http://fr.archive.ubuntu.com/ubuntu/ trusty-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://fr.archive.ubuntu.com/ubuntu/ trusty multiverse
deb http://fr.archive.ubuntu.com/ubuntu/ trusty-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://fr.archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse
deb-src http://fr.archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse #Added by software-properties

deb http://security.ubuntu.com/ubuntu trusty-security main restricted
deb-src http://security.ubuntu.com/ubuntu trusty-security main restricted universe multiverse #Added by software-properties
deb http://security.ubuntu.com/ubuntu trusty-security universe
deb http://security.ubuntu.com/ubuntu trusty-security multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu trusty partner
# deb-src http://archive.canonical.com/ubuntu trusty partner

## This software is not part of Ubuntu, but is offered by third-party
## developers who want to ship their latest software.
deb http://extras.ubuntu.com/ubuntu trusty main
deb-src http://extras.ubuntu.com/ubuntu trusty main


:~$ls /etc/apt/sources.list.d -1
blueman-ppa-trusty.list
blueman-ppa-trusty.list.save
danielrichter2007-grub-customizer-trusty.list
danielrichter2007-grub-customizer-trusty.list.save
dropbox.list
dropbox.list.save
gambas-team-gambas3-trusty.list
gambas-team-gambas3-trusty.list.save
geogebra.list
geogebra.list.save
gezakovacs-ppa-trusty.list
gezakovacs-ppa-trusty.list.save
google-chrome.list
google-chrome.list.save
i-nex-development-team-daily-trusty.list
i-nex-development-team-daily-trusty.list.save
i-nex-development-team-stable-trusty.list
i-nex-development-team-stable-trusty.list.save
jd-team-jdownloader-trusty.list
jd-team-jdownloader-trusty.list.save
kalgasnik-ppa-trusty.list
kalgasnik-ppa-trusty.list.save
megasync.list
megasync.list.save
multisystem.list
multisystem.list.save
nilarimogard-webupd8-trusty.list
nilarimogard-webupd8-trusty.list.save
plowsharepackagers-ppa-trusty.list
plowsharepackagers-ppa-trusty.list.save
plushuang-tw-uget-stable-trusty.list
plushuang-tw-uget-stable-trusty.list.save
qos-pulseaudio-dlna-trusty.list
qos-pulseaudio-dlna-trusty.list.save
sandromani-gimagereader-trusty.list
sandromani-gimagereader-trusty.list.save
skype-stable.list
skype-stable.list.save
spotify.list
spotify.list.save
strukturag-libde265-trusty.list
strukturag-libde265-trusty.list.save
thefanclub-grive-tools-trusty.list
thefanclub-grive-tools-trusty.list.save
tualatrix-ppa-trusty.list
tualatrix-ppa-trusty.list.save
ubuntu-mozilla-security-ppa-trusty.list
ubuntu-mozilla-security-ppa-trusty.list.save
umang-indicator-stickynotes-trusty.list
umang-indicator-stickynotes-trusty.list.save
x2go-stable-trusty.list
x2go-stable-trusty.list.save
yktooo-ppa-trusty.list
yktooo-ppa-trusty.list.save



:~$df -Th
Sys. de fichiers Type     Taille Utilisé Dispo Uti% Monté sur
udev             devtmpfs   3,7G    4,0K  3,7G   1% /dev
tmpfs            tmpfs      743M    1,4M  741M   1% /run
/dev/sda4        ext4       419G    329G   69G  83% /
none             tmpfs      4,0K       0  4,0K   0% /sys/fs/cgroup
none             tmpfs      5,0M       0  5,0M   0% /run/lock
none             tmpfs      3,7G    255M  3,4G   7% /run/shm
none             tmpfs      100M     40K  100M   1% /run/user

:~$df -i
Sys. de fichiers   Inœuds IUtil.   ILibre IUti% Monté sur
udev               945401    507   944894    1% /dev
tmpfs              950191    555   949636    1% /run
/dev/sda4        27901952 861415 27040537    4% /
none               950191      2   950189    1% /sys/fs/cgroup
none               950191      5   950186    1% /run/lock
none               950191    296   949895    1% /run/shm
none               950191     30   950161    1% /run/user

Alors?

#2 Re : -1 »  Police bizarre... » Le 14/07/2017, à 17:44

chris_wafer
Réponses : 39

Voici les retours :

~$ sudo ppa-purge ppa:nilarimogard/webupd8
Updating packages lists
PPA to be removed: nilarimogard webupd8
Warning:  Could not find package list for PPA: nilarimogard webupd8



~$ sudo ppa-purge ppa:tualatrix/ppa
Updating packages lists
PPA to be removed: tualatrix ppa
Package revert list generated:
 ubuntu-tweak/trusty

Disabling tualatrix PPA from /etc/apt/sources.list.d/tualatrix-ppa-trusty.list
Updating packages lists
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances       
Lecture des informations d'état... Fait
E: La version  « trusty » de « ubuntu-tweak » est introuvable
Impossible de trouver l'archive « trusty » pour le paquet « ubuntu-tweak »
Impossible de trouver l'archive « trusty » pour le paquet « ubuntu-tweak »
Les paquets suivants seront ENLEVÉS :
  libgconf2-4{u} libllvm3.5{u} libwireshark3{u} libwiretap3{u} 
  libwsutil3{u} 
0 paquets mis à jour, 0 nouvellement installés, 5 à enlever et 18 non mis à jour.
Il est nécessaire de télécharger 0 o d'archives. Après dépaquetage, 94,1 Mo seront libérés.
Voulez-vous continuer ? [Y/n/?] Y
(Lecture de la base de données... 558865 fichiers et répertoires déjà installés.)
Suppression de libgconf2-4:amd64 (3.2.6-0ubuntu2) ...
Suppression de libllvm3.5:amd64 (1:3.5-4ubuntu2~trusty2) ...
Suppression de libwiretap3:amd64 (1.10.6-1) ...
Suppression de libwireshark3:amd64 (1.10.6-1) ...
Suppression de libwsutil3:amd64 (1.10.6-1) ...
Traitement des actions différées (« triggers ») pour libc-bin (2.19-0ubuntu6.13) ...
                                              
PPA purged successfully using aptitude fallback




~$ sudo apt-get autoremove --purge
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances       
Lecture des informations d'état... Fait
0 mis à jour, 0 nouvellement installés, 0 à enlever et 18 non mis à jour.

Il semble qu'il y ait une erreur sur le 1er purge.

Je fais quoi maintenant?

#3 Re : -1 »  Police bizarre... » Le 14/07/2017, à 18:10

chris_wafer
Réponses : 39

Je ne sais pas.
Si je vire tout, ça ne va rien me désinstaller sur ma machine?

#4 Re : -1 »  Police bizarre... » Le 14/07/2017, à 21:49

chris_wafer
Réponses : 39

Ok, ça marche.
Donc dis moi la manipulation à faire, pour avoir une machine clean, sans perdre les logiciels déjà installés. ;-)

#5 Re : -1 »  Police bizarre... » Le 14/07/2017, à 23:22

chris_wafer
Réponses : 39

Je n'ai pas "ppa webupd8" sous Synaptic.

je fais quoi après?

#6 Re : -1 »  Police bizarre... » Le 15/07/2017, à 05:51

chris_wafer
Réponses : 39
Coeur Noir a écrit :

La racine / de ton système est bien remplie, mais semble encore respirer. Probablement du ménage à faire dans les anciens noyaux, et peut-être virer des logiciels dont tu ne te sers plus. À priori aucun rapport avec le souci d'affichage.

Ce problème de police est circonscrit à LO où tu le vois apparaître ailleurs ?

Quelles sont les caractéristiques "video" de ta machine, pilote libre ou proprio pour la carte graphique ?

Oui je le retrouves avec Thunderbird aussi, mais je ne sais plus pour quelle manipulation.

Comment donner les caractéristiques vidéos de ma machine?

#7 Re : -1 »  Police bizarre... » Le 15/07/2017, à 06:00

chris_wafer
Réponses : 39

Je viens de tout supprimer dans synaptic, mais la commande me sort toujours la liste.

ls /etc/apt/sources.list.d -1
blueman-ppa-trusty.list
blueman-ppa-trusty.list.save
danielrichter2007-grub-customizer-trusty.list
danielrichter2007-grub-customizer-trusty.list.save
dropbox.list
dropbox.list.save
gambas-team-gambas3-trusty.list
gambas-team-gambas3-trusty.list.save
geogebra.list
geogebra.list.save
gezakovacs-ppa-trusty.list
gezakovacs-ppa-trusty.list.save
google-chrome.list
google-chrome.list.save
i-nex-development-team-daily-trusty.list
i-nex-development-team-daily-trusty.list.save
i-nex-development-team-stable-trusty.list
i-nex-development-team-stable-trusty.list.save
jd-team-jdownloader-trusty.list
jd-team-jdownloader-trusty.list.save
kalgasnik-ppa-trusty.list
kalgasnik-ppa-trusty.list.save
megasync.list
megasync.list.save
multisystem.list
multisystem.list.save
plowsharepackagers-ppa-trusty.list
plowsharepackagers-ppa-trusty.list.save
plushuang-tw-uget-stable-trusty.list
plushuang-tw-uget-stable-trusty.list.save
qos-pulseaudio-dlna-trusty.list
qos-pulseaudio-dlna-trusty.list.save
sandromani-gimagereader-trusty.list
sandromani-gimagereader-trusty.list.save
skype-stable.list
skype-stable.list.save
spotify.list
spotify.list.save
strukturag-libde265-trusty.list
strukturag-libde265-trusty.list.save
thefanclub-grive-tools-trusty.list
thefanclub-grive-tools-trusty.list.save
tualatrix-ppa-trusty.list
tualatrix-ppa-trusty.list.save
ubuntu-mozilla-security-ppa-trusty.list
ubuntu-mozilla-security-ppa-trusty.list.save
umang-indicator-stickynotes-trusty.list
umang-indicator-stickynotes-trusty.list.save
x2go-stable-trusty.list
x2go-stable-trusty.list.save
yktooo-ppa-trusty.list
yktooo-ppa-trusty.list.save

#8 Re : -1 »  Police bizarre... » Le 15/07/2017, à 13:38

chris_wafer
Réponses : 39

Fait.

Voici les résultats des commandes :

~$ ls ~/.config/* | grep office
ls: impossible d'ouvrir le répertoire /home/chris/.config/gtk-2.0: Permission non accordée
/home/chris/.config/libreoffice:

~$ lspci | grep "VGA compatible controller"
00:01.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Kabini [Radeon HD 8400 / R3 Series]

~$ grep /drivers/ /var/log/Xorg.0.log
grep: /var/log/Xorg.0.log: Aucun fichier ou dossier de ce type

#9 Re : -1 »  Police bizarre... » Le 15/07/2017, à 22:31

chris_wafer
Réponses : 39

C'est bon le fichier est à jour, et j'ai fait upgrade.

~$ ls -la ~/.config/
total 296
drwx------ 63 chris chris  4096 mai   18 13:42 .
drwxr-xr-x 83 chris chris 12288 juil. 15 23:17 ..
drwxrwxr-x  2 chris chris  4096 oct.   1  2015 4kdownload.com
drwx------  3 chris chris  4096 juil. 14 00:06 abiword
drwxrwxr-x  2 chris chris  4096 janv.  5  2017 autostart
drwx------  2 chris chris  4096 nov.  19  2015 brasero
drwxrwxr-x  8 chris chris  4096 déc.  13  2016 cairo-dock
drwx------  6 chris chris  4096 oct.  31  2016 calibre
drwxrwxr-x  2 chris chris  4096 févr. 17  2016 catfish
drwx------  3 chris chris  4096 juin  10  2016 cef_user_data
drwx------ 10 chris chris  4096 mai   31 14:08 chromium
drwx------  3 chris chris  4096 oct.   3  2015 compiz-1
drwxrwxr-x  2 chris chris  4096 juil. 15 07:22 dconf
drwxrwxr-x  6 chris chris  4096 juin   2 15:19 Duplicati
drwx------  2 chris chris  4096 mars  28 10:10 easytag
drwx------  2 chris chris  4096 nov.  15  2016 enchant
drwx------  2 chris chris  4096 déc.  27  2016 eog
drwx------  2 chris chris  4096 juil. 14 22:40 evince
drwx------  3 chris chris  4096 oct.   6  2016 evolution
drwx------  5 chris chris  4096 juil. 15 07:37 geany
drwxr-xr-x  2 chris chris  4096 déc.   9  2016 gedit
drwxrwxr-x  2 chris chris  4096 mai   18 13:42 geogebra
drwxrwxr-x  2 chris chris  4096 juin   2 14:56 gmusicbrowser
drwx------  3 chris chris  4096 déc.  13  2016 gnote
drwx------ 16 chris chris  4096 juil. 15 07:34 google-chrome
drwx------  2 root  root   4096 janv.  1  2017 gtk-2.0
drwxrwxr-x  2 chris chris  4096 sept. 29  2015 gtk-3.0
drwx------  3 chris chris  4096 oct.   6  2016 ibus
-rw-rw-r--  1 chris chris   282 déc.  15  2016 indicator-stickynotes
drwxr-x--x  7 chris chris  4096 févr. 20 08:37 inkscape
drwxrwxr-x  2 chris chris  4096 janv.  8  2017 keepassx
drwxr-xr-x  2 chris chris  4096 sept. 27  2015 lftp
drwxr-xr-x  2 chris chris  4096 oct.   6  2016 libaccounts-glib
drwxrwxr-x  3 chris chris  4096 sept. 28  2015 libreoffice
drwx------  2 chris chris  4096 déc.  29  2016 liferea
drwx------  3 chris chris  4096 nov.   7  2015 menus
drwx------  2 chris chris  4096 janv.  6  2017 midori
drwxrwxr-x  3 chris chris  4096 juil. 23  2016 .mono
drwx------  2 chris chris  4096 juil. 13 23:04 Mousepad
drwxr-xr-x  2 chris chris  4096 oct.  22  2016 nautilus
-rw-rw-r--  1 chris chris    30 mars   6 14:01 pavucontrol.ini
drwxrwxr-x  2 chris chris  4096 mars   3  2016 pdfmod
drwxrwxr-x  2 chris chris  4096 janv.  8  2017 phatch
drwxrwxr-x  3 chris chris  4096 oct.   7  2015 plowshare
drwx------  2 chris chris  4096 janv. 15 20:31 pulse
-rw-rw-r--  1 chris chris   538 janv.  5  2017 QtProject.conf
drwx------  2 chris chris  4096 oct.   3  2015 ristretto
drwxrwxr-x  5 chris chris  4096 mars   9 11:30 skypeforlinux
drwxrwxr-x  2 chris chris  4096 juil. 15 00:17 software-center
drwxrwxr-x  3 chris chris  4096 mars   9 21:45 spotify
drwx------  2 chris chris  4096 juil. 24  2016 teamviewer
drwxrwxr-x  7 chris chris  4096 juil. 24  2016 teamviewer10
drwx------  2 chris chris  4096 sept. 27  2015 Thunar
drwx------  2 chris chris  4096 mars  17 18:33 totem
drwxr-xr-x  5 chris chris  4096 juin  30 21:24 transmission
-rw-r-----  1 chris chris 13706 juin  30 19:08 Trolltech.conf
drwxrwxr-x  8 chris chris  4096 oct.   4  2015 ubuntu-tweak
drwxrwxr-x  2 chris chris  4096 déc.  29  2016 ubuntu-ui-toolkit
drwxr-xr-x  4 chris chris  4096 oct.   7  2015 uGet
drwx------  2 chris chris  4096 sept. 28  2015 update-notifier
drwx------  2 chris chris  4096 sept. 27  2015 upstart
-rw-------  1 chris chris   639 sept. 27  2015 user-dirs.dirs
-rw-rw-r--  1 chris chris     5 sept. 27  2015 user-dirs.locale
drwx------  2 chris chris  4096 juin  27 00:14 VirtualBox
drwx------  2 chris chris  4096 oct.  31  2015 vlc
drwxrwxr-x  2 chris chris  4096 févr.  7 17:48 weboob
drwxrwxr-x  7 chris chris  4096 juil. 14 18:14 xfce4
drwx------  2 chris chris  4096 févr. 28  2016 xfce4-session
drwxrwxr-x  2 chris chris  4096 sept. 26  2016 xm1

Que dois-je faire maintenant?

#10 Re : -1 »  Police bizarre... » Le 16/07/2017, à 07:39

chris_wafer
Réponses : 39

Toujours même problème pour LibreOffice.

Pour les remarques du post #23 concernant la carte graphique, ça ne me parle pas pour le carte graphique.

Que faire maintenant?

#11 Re : -1 »  Police bizarre... » Le 16/07/2017, à 08:08

chris_wafer
Réponses : 39

Voici les infos sur driver carte :
mini_605374Capture.jpg

#12 Re : -1 »  Police bizarre... » Le 16/07/2017, à 16:57

chris_wafer
Réponses : 39

Alors voici :

~$ uname -a
Linux ORDI-FIXE-NOUVEAU 4.4.0-83-generic #106~14.04.1-Ubuntu SMP Mon Jun 26 18:10:19 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

Je suis sous Xubuntu.

Donc je fais quoi?

#13 Re : -1 »  Police bizarre... » Le 16/07/2017, à 17:40

chris_wafer
Réponses : 39

Comment installer le pilote propriétaire?
Car quand je clique ça ne marche pas.

Merci beaucoup pour votre aide.

#14 Re : -1 »  Police bizarre... » Le 18/07/2017, à 15:04

chris_wafer
Réponses : 39

Je sélectionne, je fais "Appliquer les changements", j'attends 20s, et ensuite ça sélectionne automatiquement "Utilisation du Serveur X X".

Que dois-je faire?

#15 Re : -1 »  Police bizarre... » Le 18/07/2017, à 21:14

chris_wafer
Réponses : 39

Mon 1er message n'est pas correct, je suis bien en 14.04.1.

Je fais quoi maintenant? ;-(

#16 Re : -1 »  Police bizarre... » Le 19/07/2017, à 01:12

chris_wafer
Réponses : 39

Non.

#17 Re : -1 »  Lagues avec ma version "Ubuntu 14.04" avec écriture au clavier » Le 10/07/2017, à 15:25

chris_wafer
Réponses : 13

J'ai toujours le même problème. Et je ne veux pas réinstaller, car plein de trucs configurés.
Quelqu’un peut m'aider?
J'ai changé de clavier et ça ne change rien.

Merci.

#18 Re : -1 »  Touche "FN" pour la luminosité » Le 14/02/2017, à 22:18

chris_wafer
Réponses : 27

Des nouvelles?

Merci.

#19 Re : -1 »  Touche "FN" pour la luminosité » Le 14/02/2017, à 23:30

chris_wafer
Réponses : 27

Comment modifier la luminosité alors?

Je suis en cours d'installation de LinuxMint pour voir si ça change quelquechose.

#20 Re : -1 »  Touche "FN" pour la luminosité » Le 15/02/2017, à 09:18

chris_wafer
Réponses : 27

Ca marche avec le dernier LINUXMINT et le tutoriel suivant : https://korben.info/touches-fn-luminosi … t-pas.html

#21 -1 »  Un expert de CURL et COOKIES! Scripts identiques, pas même résultat! » Le 09/03/2017, à 10:53

chris_wafer
Réponses : 0

Bonjour,

Vous pouvez trouver 2 scripts en pièce jointe. La seule différence est que je gère les cookies directement dans la requête (Script_SANS_FichierCookies.sh) ou via un fichier (Script_AVEC_FichierCookies.sh).
Or, le résultat n'est pas le même avec le fichier Script_AVEC_FichierCookies.sh comme si mes POST n'était pas validé, car il n'avait pas les bons cookies.

Voici les 2 scripts :

Script_SANS_FichierCookies.sh

#!/bin/sh

input()
{
	echo "Entre le Login sur le site LeBonCoin"
	read LOGIN

	echo "Entre le Pass sur le site LeBonCoin"
	read PASS

	echo "Entre le Pseudo A Afficher"
	read PSEUDO
}

creerAnnonce2()
{
	find "/tmp" -iname "Sortie*.html" -exec rm "{}" \;
	find "/tmp" -iname "cookies*.txt" -exec rm "{}" \;

	lindexIN=0
	lindexOUT=0


	


###################
# Afficher page
##################
	lindexIN=${lindexOUT}
	lindexOUT=`expr ${lindexIN} + 1`
	lCookiesIN="/tmp/cookies${lindexIN}.txt"
	lCookiesOUT="/tmp/cookies${lindexOUT}.txt"
	curl -L --silent \
'https://compteperso.leboncoin.fr/' -H 'Host: compteperso.leboncoin.fr' -H 'User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0' -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' -H 'Accept-Language: en-US,en;q=0.5' --compressed -H 'Cookie: cookieFrame=2; utag_main=v_id:015467a2116c0017f49188a9066d0104c001900900bd0$_sn:172$_ss:0$_st:1489050003775$_pn:3%3Bexp-session$ses_id:1489048105883%3Bexp-session; xtvrn=$562498$266818$; xtan562498=-undefined; xtant562498=1; watch_status=sc:0; ABTasty=LPT148158%3A-2.1477157618%5E%7C%5EABTastyUTMB%3A1%5E%7C%5ELiwioTracking%3A16102219333869813%5E%7C%5EsegmentationTracking%3A16102219333869813%5E%7C%5ELiwioUTMA%3A0.15.1477157618431.1480809976175.1481836207002.4; hideCookieFrame=1; _pulse2data=1702d074-e9ce-457a-964b-deaa6058d9ef,v,x,1482394342225,eyJpc3N1ZWRBdCI6IjIwMTYtMTItMjJUMDc6MTlaIiwiZW5jIjoiQTEyOENCQy1IUzI1NiIsImFsZyI6ImRpciIsImtpZCI6IjIifQ..dfK3WyE0l0r_ifKM2E2KMw.bAiadUZnKVSr07-Fs9YzdFs-dN3EZZvA5oOnbTbF7Y3n-VAh8uNx7E56wC69NZJOvcnpQzM_M3-7y5xRPL0NgCmhmkt_ieuxJWCtmC-4ugLF56g2yKzAEu81PQ6cnH6k1_pGkobY4eZlQjAD99kaYM7X_-DwM49ShQILpESCw7PgQj2X2iKoqDv2Ue6vls1h0TYGRPXo_ISLBQtM4rljuhgU_HybpQ7Aviz2gJ0-UTQ.b8fMzvxJaj9qR4Dutjfr7A,2859052476288557099,1482407842225,true,,eyJraWQiOiIyIiwiYWxnIjoiSFMyNTYifQ..Bg6qSZSZK8GH84U9GmVSDVhtV8_4hs0HeQjySgyLckI; _pulse2data=1702d074-e9ce-457a-964b-deaa6058d9ef,v,urn:leboncoin.fr:user:1050731,1480794177996,eyJraWQiOiJhODFmNDQ0OSIsImVuYyI6IkExMjhDQkMtSFMyNTYiLCJhbGciOiJkaXIifQ..7uJTyS4oMhv_zLo7tfoRkw.qZgtnRzbfcbkF1qc7ISGxxgdldhVwlgmSGy4mIjmBOuo7hjhJ7QgxngGZq5bNkaWHqElpikKOJaI4boR7cvpQZVCSHxPoI3Tzt6s-P1t8Lc2fQLH0Io21NaFIdl5ey7sgzP0ZiokJDBkq_Xndgpo-7epCcrcXn1imOv0Jgqcjd5zjWZgTDerYZCO-dwRJ9jmRNg7YxFwQUcJRGjviR-Dp1wq-Ys61Mw-sF_VtW7P0F4.smZxbc3CpYQtLZ050KqbzA,2859052476288557099,1480807677996,true,unresolved,eyJraWQiOiIxIiwiYWxnIjoiSFMyNTYifQ..R4qsTbeV9RJGSvKHxGJktWscLZi6kxs2ztnzSoqK1rs; atidvisitor=%7B%22name%22%3A%22atidvisitor%22%2C%22val%22%3A%7B%22vrn%22%3A%22-578706-%22%7D%2C%22options%22%3A%7B%22path%22%3A%22%2F%22%2C%22session%22%3A15724800%2C%22end%22%3A15724800%7D%7D' -H 'Connection: keep-alive' -H 'Upgrade-Insecure-Requests: 1' \
> "/tmp/Sortie${lindexIN}.html"

	lindexIN=${lindexOUT}
	lindexOUT=`expr ${lindexIN} + 1`
	lCookiesIN="/tmp/cookies${lindexIN}.txt"
	lCookiesOUT="/tmp/cookies${lindexOUT}.txt"
	curl -L --silent \
'https://compteperso.leboncoin.fr/account/index.html' -H 'Host: compteperso.leboncoin.fr' -H 'User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0' -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' -H 'Accept-Language: en-US,en;q=0.5' --compressed -H 'Cookie: cookieFrame=2; utag_main=v_id:015467a2116c0017f49188a9066d0104c001900900bd0$_sn:172$_ss:0$_st:1489050003775$_pn:3%3Bexp-session$ses_id:1489048105883%3Bexp-session; xtvrn=$562498$266818$; xtan562498=-undefined; xtant562498=1; watch_status=sc:0; ABTasty=LPT148158%3A-2.1477157618%5E%7C%5EABTastyUTMB%3A1%5E%7C%5ELiwioTracking%3A16102219333869813%5E%7C%5EsegmentationTracking%3A16102219333869813%5E%7C%5ELiwioUTMA%3A0.15.1477157618431.1480809976175.1481836207002.4; hideCookieFrame=1; _pulse2data=1702d074-e9ce-457a-964b-deaa6058d9ef,v,x,1482394342225,eyJpc3N1ZWRBdCI6IjIwMTYtMTItMjJUMDc6MTlaIiwiZW5jIjoiQTEyOENCQy1IUzI1NiIsImFsZyI6ImRpciIsImtpZCI6IjIifQ..dfK3WyE0l0r_ifKM2E2KMw.bAiadUZnKVSr07-Fs9YzdFs-dN3EZZvA5oOnbTbF7Y3n-VAh8uNx7E56wC69NZJOvcnpQzM_M3-7y5xRPL0NgCmhmkt_ieuxJWCtmC-4ugLF56g2yKzAEu81PQ6cnH6k1_pGkobY4eZlQjAD99kaYM7X_-DwM49ShQILpESCw7PgQj2X2iKoqDv2Ue6vls1h0TYGRPXo_ISLBQtM4rljuhgU_HybpQ7Aviz2gJ0-UTQ.b8fMzvxJaj9qR4Dutjfr7A,2859052476288557099,1482407842225,true,,eyJraWQiOiIyIiwiYWxnIjoiSFMyNTYifQ..Bg6qSZSZK8GH84U9GmVSDVhtV8_4hs0HeQjySgyLckI; _pulse2data=1702d074-e9ce-457a-964b-deaa6058d9ef,v,urn:leboncoin.fr:user:1050731,1480794177996,eyJraWQiOiJhODFmNDQ0OSIsImVuYyI6IkExMjhDQkMtSFMyNTYiLCJhbGciOiJkaXIifQ..7uJTyS4oMhv_zLo7tfoRkw.qZgtnRzbfcbkF1qc7ISGxxgdldhVwlgmSGy4mIjmBOuo7hjhJ7QgxngGZq5bNkaWHqElpikKOJaI4boR7cvpQZVCSHxPoI3Tzt6s-P1t8Lc2fQLH0Io21NaFIdl5ey7sgzP0ZiokJDBkq_Xndgpo-7epCcrcXn1imOv0Jgqcjd5zjWZgTDerYZCO-dwRJ9jmRNg7YxFwQUcJRGjviR-Dp1wq-Ys61Mw-sF_VtW7P0F4.smZxbc3CpYQtLZ050KqbzA,2859052476288557099,1480807677996,true,unresolved,eyJraWQiOiIxIiwiYWxnIjoiSFMyNTYifQ..R4qsTbeV9RJGSvKHxGJktWscLZi6kxs2ztnzSoqK1rs; atidvisitor=%7B%22name%22%3A%22atidvisitor%22%2C%22val%22%3A%7B%22vrn%22%3A%22-578706-%22%7D%2C%22options%22%3A%7B%22path%22%3A%22%2F%22%2C%22session%22%3A15724800%2C%22end%22%3A15724800%7D%7D' -H 'Connection: keep-alive' -H 'Upgrade-Insecure-Requests: 1' \
> "/tmp/Sortie${lindexIN}.html"


###################
# Connexion
##################

	lindexIN=${lindexOUT}
	lindexOUT=`expr ${lindexIN} + 1`
	lCookiesIN="/tmp/cookies${lindexIN}.txt"
	lCookiesOUT="/tmp/cookies${lindexOUT}.txt"
	curl -L --silent \
'https://compteperso.leboncoin.fr/store/verify_login/0?s=red1x428a725ef84a86b99cc9b64532f82b665fb746c0' -H 'Host: compteperso.leboncoin.fr' -H 'User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0' -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' -H 'Accept-Language: en-US,en;q=0.5' --compressed -H 'Referer: https://compteperso.leboncoin.fr/account/index.html' -H 'Cookie: cookieFrame=2; utag_main=v_id:015467a2116c0017f49188a9066d0104c001900900bd0$_sn:172$_ss:0$_st:1489050152087$_pn:5%3Bexp-session$ses_id:1489048105883%3Bexp-session; xtvrn=$562498$266818$; xtan562498=-undefined; xtant562498=1; watch_status=sc:0; ABTasty=LPT148158%3A-2.1477157618%5E%7C%5EABTastyUTMB%3A1%5E%7C%5ELiwioTracking%3A16102219333869813%5E%7C%5EsegmentationTracking%3A16102219333869813%5E%7C%5ELiwioUTMA%3A0.15.1477157618431.1480809976175.1481836207002.4; hideCookieFrame=1; _pulse2data=1702d074-e9ce-457a-964b-deaa6058d9ef,v,x,1482394342225,eyJpc3N1ZWRBdCI6IjIwMTYtMTItMjJUMDc6MTlaIiwiZW5jIjoiQTEyOENCQy1IUzI1NiIsImFsZyI6ImRpciIsImtpZCI6IjIifQ..dfK3WyE0l0r_ifKM2E2KMw.bAiadUZnKVSr07-Fs9YzdFs-dN3EZZvA5oOnbTbF7Y3n-VAh8uNx7E56wC69NZJOvcnpQzM_M3-7y5xRPL0NgCmhmkt_ieuxJWCtmC-4ugLF56g2yKzAEu81PQ6cnH6k1_pGkobY4eZlQjAD99kaYM7X_-DwM49ShQILpESCw7PgQj2X2iKoqDv2Ue6vls1h0TYGRPXo_ISLBQtM4rljuhgU_HybpQ7Aviz2gJ0-UTQ.b8fMzvxJaj9qR4Dutjfr7A,2859052476288557099,1482407842225,true,,eyJraWQiOiIyIiwiYWxnIjoiSFMyNTYifQ..Bg6qSZSZK8GH84U9GmVSDVhtV8_4hs0HeQjySgyLckI; _pulse2data=1702d074-e9ce-457a-964b-deaa6058d9ef,v,urn:leboncoin.fr:user:1050731,1480794177996,eyJraWQiOiJhODFmNDQ0OSIsImVuYyI6IkExMjhDQkMtSFMyNTYiLCJhbGciOiJkaXIifQ..7uJTyS4oMhv_zLo7tfoRkw.qZgtnRzbfcbkF1qc7ISGxxgdldhVwlgmSGy4mIjmBOuo7hjhJ7QgxngGZq5bNkaWHqElpikKOJaI4boR7cvpQZVCSHxPoI3Tzt6s-P1t8Lc2fQLH0Io21NaFIdl5ey7sgzP0ZiokJDBkq_Xndgpo-7epCcrcXn1imOv0Jgqcjd5zjWZgTDerYZCO-dwRJ9jmRNg7YxFwQUcJRGjviR-Dp1wq-Ys61Mw-sF_VtW7P0F4.smZxbc3CpYQtLZ050KqbzA,2859052476288557099,1480807677996,true,unresolved,eyJraWQiOiIxIiwiYWxnIjoiSFMyNTYifQ..R4qsTbeV9RJGSvKHxGJktWscLZi6kxs2ztnzSoqK1rs; atidvisitor=%7B%22name%22%3A%22atidvisitor%22%2C%22val%22%3A%7B%22vrn%22%3A%22-578706-%22%7D%2C%22options%22%3A%7B%22path%22%3A%22%2F%22%2C%22session%22%3A15724800%2C%22end%22%3A15724800%7D%7D; s=red1x428a725ef84a86b99cc9b64532f82b665fb746c0; oas_ab=a' -H 'Connection: keep-alive' -H 'Upgrade-Insecure-Requests: 1' --data "st_username=${LOGIN}&st_passwd=${PASS}" \
> "/tmp/Sortie${lindexIN}.html"

	lindexIN=${lindexOUT}
	lindexOUT=`expr ${lindexIN} + 1`
	lCookiesIN="/tmp/cookies${lindexIN}.txt"
	lCookiesOUT="/tmp/cookies${lindexOUT}.txt"
	curl -L --silent \
'https://compteperso.leboncoin.fr/store/main/0' -H 'Host: compteperso.leboncoin.fr' -H 'User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0' -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' -H 'Accept-Language: en-US,en;q=0.5' --compressed -H 'Referer: https://compteperso.leboncoin.fr/account/index.html' -H 'Cookie: token_expire=1489055351; cookieFrame=2; utag_main=v_id:015467a2116c0017f49188a9066d0104c001900900bd0$_sn:172$_ss:0$_st:1489050152087$_pn:5%3Bexp-session$ses_id:1489048105883%3Bexp-session; xtvrn=$562498$266818$; xtan562498=-undefined; xtant562498=1; watch_status=sc:0; ABTasty=LPT148158%3A-2.1477157618%5E%7C%5EABTastyUTMB%3A1%5E%7C%5ELiwioTracking%3A16102219333869813%5E%7C%5EsegmentationTracking%3A16102219333869813%5E%7C%5ELiwioUTMA%3A0.15.1477157618431.1480809976175.1481836207002.4; hideCookieFrame=1; _pulse2data=1702d074-e9ce-457a-964b-deaa6058d9ef,v,x,1482394342225,eyJpc3N1ZWRBdCI6IjIwMTYtMTItMjJUMDc6MTlaIiwiZW5jIjoiQTEyOENCQy1IUzI1NiIsImFsZyI6ImRpciIsImtpZCI6IjIifQ..dfK3WyE0l0r_ifKM2E2KMw.bAiadUZnKVSr07-Fs9YzdFs-dN3EZZvA5oOnbTbF7Y3n-VAh8uNx7E56wC69NZJOvcnpQzM_M3-7y5xRPL0NgCmhmkt_ieuxJWCtmC-4ugLF56g2yKzAEu81PQ6cnH6k1_pGkobY4eZlQjAD99kaYM7X_-DwM49ShQILpESCw7PgQj2X2iKoqDv2Ue6vls1h0TYGRPXo_ISLBQtM4rljuhgU_HybpQ7Aviz2gJ0-UTQ.b8fMzvxJaj9qR4Dutjfr7A,2859052476288557099,1482407842225,true,,eyJraWQiOiIyIiwiYWxnIjoiSFMyNTYifQ..Bg6qSZSZK8GH84U9GmVSDVhtV8_4hs0HeQjySgyLckI; _pulse2data=1702d074-e9ce-457a-964b-deaa6058d9ef,v,urn:leboncoin.fr:user:1050731,1480794177996,eyJraWQiOiJhODFmNDQ0OSIsImVuYyI6IkExMjhDQkMtSFMyNTYiLCJhbGciOiJkaXIifQ..7uJTyS4oMhv_zLo7tfoRkw.qZgtnRzbfcbkF1qc7ISGxxgdldhVwlgmSGy4mIjmBOuo7hjhJ7QgxngGZq5bNkaWHqElpikKOJaI4boR7cvpQZVCSHxPoI3Tzt6s-P1t8Lc2fQLH0Io21NaFIdl5ey7sgzP0ZiokJDBkq_Xndgpo-7epCcrcXn1imOv0Jgqcjd5zjWZgTDerYZCO-dwRJ9jmRNg7YxFwQUcJRGjviR-Dp1wq-Ys61Mw-sF_VtW7P0F4.smZxbc3CpYQtLZ050KqbzA,2859052476288557099,1480807677996,true,unresolved,eyJraWQiOiIxIiwiYWxnIjoiSFMyNTYifQ..R4qsTbeV9RJGSvKHxGJktWscLZi6kxs2ztnzSoqK1rs; atidvisitor=%7B%22name%22%3A%22atidvisitor%22%2C%22val%22%3A%7B%22vrn%22%3A%22-578706-%22%7D%2C%22options%22%3A%7B%22path%22%3A%22%2F%22%2C%22session%22%3A15724800%2C%22end%22%3A15724800%7D%7D; s=red1x428a725ef84a86b99cc9b64532f82b665fb746c0; oas_ab=a; sli=1; my_ads_resync=24686511__384904c0-9b66-4c6c-9f12-31cef0111e3b; last_resync=1489048403807' -H 'Connection: keep-alive' -H 'Upgrade-Insecure-Requests: 1' \
> "/tmp/Sortie${lindexIN}.html"

	lindexIN=${lindexOUT}
	lindexOUT=`expr ${lindexIN} + 1`
	lCookiesIN="/tmp/cookies${lindexIN}.txt"
	lCookiesOUT="/tmp/cookies${lindexOUT}.txt"
	curl -L --silent \
'https://compteperso.leboncoin.fr/store/list/0?o=0&fm=1' -H 'Host: compteperso.leboncoin.fr' -H 'User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0' -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' -H 'Accept-Language: en-US,en;q=0.5' --compressed -H 'Referer: https://compteperso.leboncoin.fr/account/index.html' -H 'Cookie: cookieFrame=2; utag_main=v_id:015467a2116c0017f49188a9066d0104c001900900bd0$_sn:172$_ss:0$_st:1489050152087$_pn:5%3Bexp-session$ses_id:1489048105883%3Bexp-session; xtvrn=$562498$266818$; xtan562498=-undefined; xtant562498=1; watch_status=sc:0; ABTasty=LPT148158%3A-2.1477157618%5E%7C%5EABTastyUTMB%3A1%5E%7C%5ELiwioTracking%3A16102219333869813%5E%7C%5EsegmentationTracking%3A16102219333869813%5E%7C%5ELiwioUTMA%3A0.15.1477157618431.1480809976175.1481836207002.4; hideCookieFrame=1; _pulse2data=1702d074-e9ce-457a-964b-deaa6058d9ef,v,x,1482394342225,eyJpc3N1ZWRBdCI6IjIwMTYtMTItMjJUMDc6MTlaIiwiZW5jIjoiQTEyOENCQy1IUzI1NiIsImFsZyI6ImRpciIsImtpZCI6IjIifQ..dfK3WyE0l0r_ifKM2E2KMw.bAiadUZnKVSr07-Fs9YzdFs-dN3EZZvA5oOnbTbF7Y3n-VAh8uNx7E56wC69NZJOvcnpQzM_M3-7y5xRPL0NgCmhmkt_ieuxJWCtmC-4ugLF56g2yKzAEu81PQ6cnH6k1_pGkobY4eZlQjAD99kaYM7X_-DwM49ShQILpESCw7PgQj2X2iKoqDv2Ue6vls1h0TYGRPXo_ISLBQtM4rljuhgU_HybpQ7Aviz2gJ0-UTQ.b8fMzvxJaj9qR4Dutjfr7A,2859052476288557099,1482407842225,true,,eyJraWQiOiIyIiwiYWxnIjoiSFMyNTYifQ..Bg6qSZSZK8GH84U9GmVSDVhtV8_4hs0HeQjySgyLckI; _pulse2data=1702d074-e9ce-457a-964b-deaa6058d9ef,v,urn:leboncoin.fr:user:1050731,1480794177996,eyJraWQiOiJhODFmNDQ0OSIsImVuYyI6IkExMjhDQkMtSFMyNTYiLCJhbGciOiJkaXIifQ..7uJTyS4oMhv_zLo7tfoRkw.qZgtnRzbfcbkF1qc7ISGxxgdldhVwlgmSGy4mIjmBOuo7hjhJ7QgxngGZq5bNkaWHqElpikKOJaI4boR7cvpQZVCSHxPoI3Tzt6s-P1t8Lc2fQLH0Io21NaFIdl5ey7sgzP0ZiokJDBkq_Xndgpo-7epCcrcXn1imOv0Jgqcjd5zjWZgTDerYZCO-dwRJ9jmRNg7YxFwQUcJRGjviR-Dp1wq-Ys61Mw-sF_VtW7P0F4.smZxbc3CpYQtLZ050KqbzA,2859052476288557099,1480807677996,true,unresolved,eyJraWQiOiIxIiwiYWxnIjoiSFMyNTYifQ..R4qsTbeV9RJGSvKHxGJktWscLZi6kxs2ztnzSoqK1rs; atidvisitor=%7B%22name%22%3A%22atidvisitor%22%2C%22val%22%3A%7B%22vrn%22%3A%22-578706-%22%7D%2C%22options%22%3A%7B%22path%22%3A%22%2F%22%2C%22session%22%3A15724800%2C%22end%22%3A15724800%7D%7D; s=red1x428a725ef84a86b99cc9b64532f82b665fb746c0; oas_ab=a; sli=1; my_ads_resync=24686511__384904c0-9b66-4c6c-9f12-31cef0111e3b; last_resync=1489048403807' -H 'Connection: keep-alive' -H 'Upgrade-Insecure-Requests: 1' \
> "/tmp/Sortie${lindexIN}.html"

	lindexIN=${lindexOUT}
	lindexOUT=`expr ${lindexIN} + 1`
	lCookiesIN="/tmp/cookies${lindexIN}.txt"
	lCookiesOUT="/tmp/cookies${lindexOUT}.txt"
	curl -L --silent \
'https://compteperso.leboncoin.fr/account/?ca=12_s' -H 'Host: compteperso.leboncoin.fr' -H 'User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0' -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' -H 'Accept-Language: en-US,en;q=0.5' --compressed -H 'Referer: https://compteperso.leboncoin.fr/account/index.html' -H 'Cookie: cookieFrame=2; utag_main=v_id:015467a2116c0017f49188a9066d0104c001900900bd0$_sn:172$_ss:0$_st:1489050152087$_pn:5%3Bexp-session$ses_id:1489048105883%3Bexp-session; xtvrn=$562498$266818$; xtan562498=-undefined; xtant562498=1; watch_status=sc:0; ABTasty=LPT148158%3A-2.1477157618%5E%7C%5EABTastyUTMB%3A1%5E%7C%5ELiwioTracking%3A16102219333869813%5E%7C%5EsegmentationTracking%3A16102219333869813%5E%7C%5ELiwioUTMA%3A0.15.1477157618431.1480809976175.1481836207002.4; hideCookieFrame=1; _pulse2data=1702d074-e9ce-457a-964b-deaa6058d9ef,v,x,1482394342225,eyJpc3N1ZWRBdCI6IjIwMTYtMTItMjJUMDc6MTlaIiwiZW5jIjoiQTEyOENCQy1IUzI1NiIsImFsZyI6ImRpciIsImtpZCI6IjIifQ..dfK3WyE0l0r_ifKM2E2KMw.bAiadUZnKVSr07-Fs9YzdFs-dN3EZZvA5oOnbTbF7Y3n-VAh8uNx7E56wC69NZJOvcnpQzM_M3-7y5xRPL0NgCmhmkt_ieuxJWCtmC-4ugLF56g2yKzAEu81PQ6cnH6k1_pGkobY4eZlQjAD99kaYM7X_-DwM49ShQILpESCw7PgQj2X2iKoqDv2Ue6vls1h0TYGRPXo_ISLBQtM4rljuhgU_HybpQ7Aviz2gJ0-UTQ.b8fMzvxJaj9qR4Dutjfr7A,2859052476288557099,1482407842225,true,,eyJraWQiOiIyIiwiYWxnIjoiSFMyNTYifQ..Bg6qSZSZK8GH84U9GmVSDVhtV8_4hs0HeQjySgyLckI; _pulse2data=1702d074-e9ce-457a-964b-deaa6058d9ef,v,urn:leboncoin.fr:user:1050731,1480794177996,eyJraWQiOiJhODFmNDQ0OSIsImVuYyI6IkExMjhDQkMtSFMyNTYiLCJhbGciOiJkaXIifQ..7uJTyS4oMhv_zLo7tfoRkw.qZgtnRzbfcbkF1qc7ISGxxgdldhVwlgmSGy4mIjmBOuo7hjhJ7QgxngGZq5bNkaWHqElpikKOJaI4boR7cvpQZVCSHxPoI3Tzt6s-P1t8Lc2fQLH0Io21NaFIdl5ey7sgzP0ZiokJDBkq_Xndgpo-7epCcrcXn1imOv0Jgqcjd5zjWZgTDerYZCO-dwRJ9jmRNg7YxFwQUcJRGjviR-Dp1wq-Ys61Mw-sF_VtW7P0F4.smZxbc3CpYQtLZ050KqbzA,2859052476288557099,1480807677996,true,unresolved,eyJraWQiOiIxIiwiYWxnIjoiSFMyNTYifQ..R4qsTbeV9RJGSvKHxGJktWscLZi6kxs2ztnzSoqK1rs; atidvisitor=%7B%22name%22%3A%22atidvisitor%22%2C%22val%22%3A%7B%22vrn%22%3A%22-578706-%22%7D%2C%22options%22%3A%7B%22path%22%3A%22%2F%22%2C%22session%22%3A15724800%2C%22end%22%3A15724800%7D%7D; s=red1x428a725ef84a86b99cc9b64532f82b665fb746c0; oas_ab=a; sli=1; my_ads_resync=24686511__384904c0-9b66-4c6c-9f12-31cef0111e3b; last_resync=1489048403807' -H 'Connection: keep-alive' -H 'Upgrade-Insecure-Requests: 1' \
> "/tmp/Sortie${lindexIN}.html"

	lindexIN=${lindexOUT}
	lindexOUT=`expr ${lindexIN} + 1`
	lCookiesIN="/tmp/cookies${lindexIN}.txt"
	lCookiesOUT="/tmp/cookies${lindexOUT}.txt"
	curl -L --silent \
'https://compteperso.leboncoin.fr/account/index.html?ca=12_s' -H 'Host: compteperso.leboncoin.fr' -H 'User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0' -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' -H 'Accept-Language: en-US,en;q=0.5' --compressed -H 'Referer: https://compteperso.leboncoin.fr/account/index.html' -H 'Cookie: cookieFrame=2; utag_main=v_id:015467a2116c0017f49188a9066d0104c001900900bd0$_sn:172$_ss:0$_st:1489050152087$_pn:5%3Bexp-session$ses_id:1489048105883%3Bexp-session; xtvrn=$562498$266818$; xtan562498=-undefined; xtant562498=1; watch_status=sc:0; ABTasty=LPT148158%3A-2.1477157618%5E%7C%5EABTastyUTMB%3A1%5E%7C%5ELiwioTracking%3A16102219333869813%5E%7C%5EsegmentationTracking%3A16102219333869813%5E%7C%5ELiwioUTMA%3A0.15.1477157618431.1480809976175.1481836207002.4; hideCookieFrame=1; _pulse2data=1702d074-e9ce-457a-964b-deaa6058d9ef,v,x,1482394342225,eyJpc3N1ZWRBdCI6IjIwMTYtMTItMjJUMDc6MTlaIiwiZW5jIjoiQTEyOENCQy1IUzI1NiIsImFsZyI6ImRpciIsImtpZCI6IjIifQ..dfK3WyE0l0r_ifKM2E2KMw.bAiadUZnKVSr07-Fs9YzdFs-dN3EZZvA5oOnbTbF7Y3n-VAh8uNx7E56wC69NZJOvcnpQzM_M3-7y5xRPL0NgCmhmkt_ieuxJWCtmC-4ugLF56g2yKzAEu81PQ6cnH6k1_pGkobY4eZlQjAD99kaYM7X_-DwM49ShQILpESCw7PgQj2X2iKoqDv2Ue6vls1h0TYGRPXo_ISLBQtM4rljuhgU_HybpQ7Aviz2gJ0-UTQ.b8fMzvxJaj9qR4Dutjfr7A,2859052476288557099,1482407842225,true,,eyJraWQiOiIyIiwiYWxnIjoiSFMyNTYifQ..Bg6qSZSZK8GH84U9GmVSDVhtV8_4hs0HeQjySgyLckI; _pulse2data=1702d074-e9ce-457a-964b-deaa6058d9ef,v,urn:leboncoin.fr:user:1050731,1480794177996,eyJraWQiOiJhODFmNDQ0OSIsImVuYyI6IkExMjhDQkMtSFMyNTYiLCJhbGciOiJkaXIifQ..7uJTyS4oMhv_zLo7tfoRkw.qZgtnRzbfcbkF1qc7ISGxxgdldhVwlgmSGy4mIjmBOuo7hjhJ7QgxngGZq5bNkaWHqElpikKOJaI4boR7cvpQZVCSHxPoI3Tzt6s-P1t8Lc2fQLH0Io21NaFIdl5ey7sgzP0ZiokJDBkq_Xndgpo-7epCcrcXn1imOv0Jgqcjd5zjWZgTDerYZCO-dwRJ9jmRNg7YxFwQUcJRGjviR-Dp1wq-Ys61Mw-sF_VtW7P0F4.smZxbc3CpYQtLZ050KqbzA,2859052476288557099,1480807677996,true,unresolved,eyJraWQiOiIxIiwiYWxnIjoiSFMyNTYifQ..R4qsTbeV9RJGSvKHxGJktWscLZi6kxs2ztnzSoqK1rs; atidvisitor=%7B%22name%22%3A%22atidvisitor%22%2C%22val%22%3A%7B%22vrn%22%3A%22-578706-%22%7D%2C%22options%22%3A%7B%22path%22%3A%22%2F%22%2C%22session%22%3A15724800%2C%22end%22%3A15724800%7D%7D; s=red1x428a725ef84a86b99cc9b64532f82b665fb746c0; oas_ab=a; sli=1; my_ads_resync=24686511__384904c0-9b66-4c6c-9f12-31cef0111e3b; last_resync=1489048403807' -H 'Connection: keep-alive' -H 'Upgrade-Insecure-Requests: 1' \
> "/tmp/Sortie${lindexIN}.html"


###################
# Deposer annonce
##################
	lindexIN=${lindexOUT}
	lindexOUT=`expr ${lindexIN} + 1`
	lCookiesIN="/tmp/cookies${lindexIN}.txt"
	lCookiesOUT="/tmp/cookies${lindexOUT}.txt"
	curl -L --silent \
'https://www2.leboncoin.fr/ai?ca=2_s' -H 'Host: www2.leboncoin.fr' -H 'User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0' -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' -H 'Accept-Language: en-US,en;q=0.5' --compressed -H 'Referer: https://compteperso.leboncoin.fr/account/index.html?ca=12_s' -H 'Cookie: cookieFrame=2; utag_main=v_id:015467a2116c0017f49188a9066d0104c001900900bd0$_sn:172$_ss:0$_st:1489050205458$_pn:6%3Bexp-session$ses_id:1489048105883%3Bexp-session; xtvrn=$562498$266818$; xtan562498=-undefined; xtant562498=1; watch_status=sc:0; ABTasty=LPT148158%3A-2.1477157618%5E%7C%5EABTastyUTMB%3A1%5E%7C%5ELiwioTracking%3A16102219333869813%5E%7C%5EsegmentationTracking%3A16102219333869813%5E%7C%5ELiwioUTMA%3A0.15.1477157618431.1480809976175.1481836207002.4; hideCookieFrame=1; _pulse2data=1702d074-e9ce-457a-964b-deaa6058d9ef,v,x,1482394342225,eyJpc3N1ZWRBdCI6IjIwMTYtMTItMjJUMDc6MTlaIiwiZW5jIjoiQTEyOENCQy1IUzI1NiIsImFsZyI6ImRpciIsImtpZCI6IjIifQ..dfK3WyE0l0r_ifKM2E2KMw.bAiadUZnKVSr07-Fs9YzdFs-dN3EZZvA5oOnbTbF7Y3n-VAh8uNx7E56wC69NZJOvcnpQzM_M3-7y5xRPL0NgCmhmkt_ieuxJWCtmC-4ugLF56g2yKzAEu81PQ6cnH6k1_pGkobY4eZlQjAD99kaYM7X_-DwM49ShQILpESCw7PgQj2X2iKoqDv2Ue6vls1h0TYGRPXo_ISLBQtM4rljuhgU_HybpQ7Aviz2gJ0-UTQ.b8fMzvxJaj9qR4Dutjfr7A,2859052476288557099,1482407842225,true,,eyJraWQiOiIyIiwiYWxnIjoiSFMyNTYifQ..Bg6qSZSZK8GH84U9GmVSDVhtV8_4hs0HeQjySgyLckI; uid=gZoRfqCcyszTEF2Zl2ELYaBaRiQgxWr741UabafV0yk%3D; _pulse2data=1702d074-e9ce-457a-964b-deaa6058d9ef,v,x,1480874289076,eyJraWQiOiJhODFmNDQ0OSIsImVuYyI6IkExMjhDQkMtSFMyNTYiLCJhbGciOiJkaXIifQ..IvA1cqz1acQYDGXRZIBdcg.5C6GlVsvKBULKhcFsJXDC7sVW1oA5Dnaca7QA5SeW7hB1zjbdT9AWFY6pvd2_rQqcBa3Cxo3-ceSjXPO-95g74O0c8cvfPzS-V-anVD2LL5fEAvoQaeeJFXMLS0FhF054htBrP_dggtaliOkLC9V8s6xJhkTNAKsNQ_mKGxbxWZ_jXpVipp7AI2AvP1YSXRjN9ftzCSoo7d2B_FyRp_p0Ylmxfbfrewu3x-7npfoARM.BPDfNt-lFzi7IsnpuZzsrA,2859052476288557099,1480887789076,true,,eyJraWQiOiIxIiwiYWxnIjoiSFMyNTYifQ..R4qsTbeV9RJGSvKHxGJktWscLZi6kxs2ztnzSoqK1rs; atidvisitor=%7B%22name%22%3A%22atidvisitor%22%2C%22val%22%3A%7B%22vrn%22%3A%22-578706-%22%7D%2C%22options%22%3A%7B%22path%22%3A%22%2F%22%2C%22session%22%3A15724800%2C%22end%22%3A15724800%7D%7D; s=red1x428a725ef84a86b99cc9b64532f82b665fb746c0; sli=1; my_ads_resync=24686511__384904c0-9b66-4c6c-9f12-31cef0111e3b; last_resync=1489048403807' -H 'Connection: keep-alive' -H 'Upgrade-Insecure-Requests: 1' \
> "/tmp/Sortie${lindexIN}.html"

	lindexIN=${lindexOUT}
	lindexOUT=`expr ${lindexIN} + 1`
	lCookiesIN="/tmp/cookies${lindexIN}.txt"
	lCookiesOUT="/tmp/cookies${lindexOUT}.txt"
	curl -L --silent \
'https://www2.leboncoin.fr/ai/load/0?ca=2_s' -H 'Host: www2.leboncoin.fr' -H 'User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0' -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' -H 'Accept-Language: en-US,en;q=0.5' --compressed -H 'Referer: https://compteperso.leboncoin.fr/account/index.html?ca=12_s' -H 'Cookie: cookieFrame=2; utag_main=v_id:015467a2116c0017f49188a9066d0104c001900900bd0$_sn:172$_ss:0$_st:1489050205458$_pn:6%3Bexp-session$ses_id:1489048105883%3Bexp-session; xtvrn=$562498$266818$; xtan562498=-undefined; xtant562498=1; watch_status=sc:0; ABTasty=LPT148158%3A-2.1477157618%5E%7C%5EABTastyUTMB%3A1%5E%7C%5ELiwioTracking%3A16102219333869813%5E%7C%5EsegmentationTracking%3A16102219333869813%5E%7C%5ELiwioUTMA%3A0.15.1477157618431.1480809976175.1481836207002.4; hideCookieFrame=1; _pulse2data=1702d074-e9ce-457a-964b-deaa6058d9ef,v,x,1482394342225,eyJpc3N1ZWRBdCI6IjIwMTYtMTItMjJUMDc6MTlaIiwiZW5jIjoiQTEyOENCQy1IUzI1NiIsImFsZyI6ImRpciIsImtpZCI6IjIifQ..dfK3WyE0l0r_ifKM2E2KMw.bAiadUZnKVSr07-Fs9YzdFs-dN3EZZvA5oOnbTbF7Y3n-VAh8uNx7E56wC69NZJOvcnpQzM_M3-7y5xRPL0NgCmhmkt_ieuxJWCtmC-4ugLF56g2yKzAEu81PQ6cnH6k1_pGkobY4eZlQjAD99kaYM7X_-DwM49ShQILpESCw7PgQj2X2iKoqDv2Ue6vls1h0TYGRPXo_ISLBQtM4rljuhgU_HybpQ7Aviz2gJ0-UTQ.b8fMzvxJaj9qR4Dutjfr7A,2859052476288557099,1482407842225,true,,eyJraWQiOiIyIiwiYWxnIjoiSFMyNTYifQ..Bg6qSZSZK8GH84U9GmVSDVhtV8_4hs0HeQjySgyLckI; uid=gZoRfqCcyszTEF2Zl2ELYaBaRiQgxWr741UabafV0yk%3D; _pulse2data=1702d074-e9ce-457a-964b-deaa6058d9ef,v,x,1480874289076,eyJraWQiOiJhODFmNDQ0OSIsImVuYyI6IkExMjhDQkMtSFMyNTYiLCJhbGciOiJkaXIifQ..IvA1cqz1acQYDGXRZIBdcg.5C6GlVsvKBULKhcFsJXDC7sVW1oA5Dnaca7QA5SeW7hB1zjbdT9AWFY6pvd2_rQqcBa3Cxo3-ceSjXPO-95g74O0c8cvfPzS-V-anVD2LL5fEAvoQaeeJFXMLS0FhF054htBrP_dggtaliOkLC9V8s6xJhkTNAKsNQ_mKGxbxWZ_jXpVipp7AI2AvP1YSXRjN9ftzCSoo7d2B_FyRp_p0Ylmxfbfrewu3x-7npfoARM.BPDfNt-lFzi7IsnpuZzsrA,2859052476288557099,1480887789076,true,,eyJraWQiOiIxIiwiYWxnIjoiSFMyNTYifQ..R4qsTbeV9RJGSvKHxGJktWscLZi6kxs2ztnzSoqK1rs; atidvisitor=%7B%22name%22%3A%22atidvisitor%22%2C%22val%22%3A%7B%22vrn%22%3A%22-578706-%22%7D%2C%22options%22%3A%7B%22path%22%3A%22%2F%22%2C%22session%22%3A15724800%2C%22end%22%3A15724800%7D%7D; s=red1x428a725ef84a86b99cc9b64532f82b665fb746c0; sli=1; my_ads_resync=24686511__384904c0-9b66-4c6c-9f12-31cef0111e3b; last_resync=1489048403807' -H 'Connection: keep-alive' -H 'Upgrade-Insecure-Requests: 1' \
> "/tmp/Sortie${lindexIN}.html"

	lindexIN=${lindexOUT}
	lindexOUT=`expr ${lindexIN} + 1`
	lCookiesIN="/tmp/cookies${lindexIN}.txt"
	lCookiesOUT="/tmp/cookies${lindexOUT}.txt"
	curl -L --silent \
'https://www2.leboncoin.fr/ai/form/0?ca=2_s' -H 'Host: www2.leboncoin.fr' -H 'User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0' -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' -H 'Accept-Language: en-US,en;q=0.5' --compressed -H 'Referer: https://compteperso.leboncoin.fr/account/index.html?ca=12_s' -H 'Cookie: cookieFrame=2; utag_main=v_id:015467a2116c0017f49188a9066d0104c001900900bd0$_sn:172$_ss:0$_st:1489050205458$_pn:6%3Bexp-session$ses_id:1489048105883%3Bexp-session; xtvrn=$562498$266818$; xtan562498=-undefined; xtant562498=1; watch_status=sc:0; ABTasty=LPT148158%3A-2.1477157618%5E%7C%5EABTastyUTMB%3A1%5E%7C%5ELiwioTracking%3A16102219333869813%5E%7C%5EsegmentationTracking%3A16102219333869813%5E%7C%5ELiwioUTMA%3A0.15.1477157618431.1480809976175.1481836207002.4; hideCookieFrame=1; _pulse2data=1702d074-e9ce-457a-964b-deaa6058d9ef,v,x,1482394342225,eyJpc3N1ZWRBdCI6IjIwMTYtMTItMjJUMDc6MTlaIiwiZW5jIjoiQTEyOENCQy1IUzI1NiIsImFsZyI6ImRpciIsImtpZCI6IjIifQ..dfK3WyE0l0r_ifKM2E2KMw.bAiadUZnKVSr07-Fs9YzdFs-dN3EZZvA5oOnbTbF7Y3n-VAh8uNx7E56wC69NZJOvcnpQzM_M3-7y5xRPL0NgCmhmkt_ieuxJWCtmC-4ugLF56g2yKzAEu81PQ6cnH6k1_pGkobY4eZlQjAD99kaYM7X_-DwM49ShQILpESCw7PgQj2X2iKoqDv2Ue6vls1h0TYGRPXo_ISLBQtM4rljuhgU_HybpQ7Aviz2gJ0-UTQ.b8fMzvxJaj9qR4Dutjfr7A,2859052476288557099,1482407842225,true,,eyJraWQiOiIyIiwiYWxnIjoiSFMyNTYifQ..Bg6qSZSZK8GH84U9GmVSDVhtV8_4hs0HeQjySgyLckI; uid=gZoRfqCcyszTEF2Zl2ELYaBaRiQgxWr741UabafV0yk%3D; _pulse2data=1702d074-e9ce-457a-964b-deaa6058d9ef,v,x,1480874289076,eyJraWQiOiJhODFmNDQ0OSIsImVuYyI6IkExMjhDQkMtSFMyNTYiLCJhbGciOiJkaXIifQ..IvA1cqz1acQYDGXRZIBdcg.5C6GlVsvKBULKhcFsJXDC7sVW1oA5Dnaca7QA5SeW7hB1zjbdT9AWFY6pvd2_rQqcBa3Cxo3-ceSjXPO-95g74O0c8cvfPzS-V-anVD2LL5fEAvoQaeeJFXMLS0FhF054htBrP_dggtaliOkLC9V8s6xJhkTNAKsNQ_mKGxbxWZ_jXpVipp7AI2AvP1YSXRjN9ftzCSoo7d2B_FyRp_p0Ylmxfbfrewu3x-7npfoARM.BPDfNt-lFzi7IsnpuZzsrA,2859052476288557099,1480887789076,true,,eyJraWQiOiIxIiwiYWxnIjoiSFMyNTYifQ..R4qsTbeV9RJGSvKHxGJktWscLZi6kxs2ztnzSoqK1rs; atidvisitor=%7B%22name%22%3A%22atidvisitor%22%2C%22val%22%3A%7B%22vrn%22%3A%22-578706-%22%7D%2C%22options%22%3A%7B%22path%22%3A%22%2F%22%2C%22session%22%3A15724800%2C%22end%22%3A15724800%7D%7D; s=red1x428a725ef84a86b99cc9b64532f82b665fb746c0; sli=1; my_ads_resync=24686511__384904c0-9b66-4c6c-9f12-31cef0111e3b; last_resync=1489048403807' -H 'Connection: keep-alive' -H 'Upgrade-Insecure-Requests: 1' \
> "/tmp/Sortie${lindexIN}.html"

####################
# POST VRAIMENT
####################
	lindexIN=${lindexOUT}
	lindexOUT=`expr ${lindexIN} + 1`
	lCookiesIN="/tmp/cookies${lindexIN}.txt"
	lCookiesOUT="/tmp/cookies${lindexOUT}.txt"
	curl -L --silent \
'https://www2.leboncoin.fr/ai/verify/0' -H 'Host: www2.leboncoin.fr' -H 'User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0' -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' -H 'Accept-Language: en-US,en;q=0.5' --compressed -H 'Referer: https://www2.leboncoin.fr/ai/form/0?ca=2_s' -H 'Cookie: cookieFrame=2; utag_main=v_id:015467a2116c0017f49188a9066d0104c001900900bd0$_sn:172$_ss:0$_st:1489050359709$_pn:7%3Bexp-session$ses_id:1489048105883%3Bexp-session; xtvrn=$562498$266818$; xtan562498=1-24686511; xtant562498=1; watch_status=sc:0; ABTasty=LPT148158%3A-2.1477157618%5E%7C%5EABTastyUTMB%3A1%5E%7C%5ELiwioTracking%3A16102219333869813%5E%7C%5EsegmentationTracking%3A16102219333869813%5E%7C%5ELiwioUTMA%3A0.15.1477157618431.1480809976175.1481836207002.4; hideCookieFrame=1; _pulse2data=1702d074-e9ce-457a-964b-deaa6058d9ef,v,x,1482394342225,eyJpc3N1ZWRBdCI6IjIwMTYtMTItMjJUMDc6MTlaIiwiZW5jIjoiQTEyOENCQy1IUzI1NiIsImFsZyI6ImRpciIsImtpZCI6IjIifQ..dfK3WyE0l0r_ifKM2E2KMw.bAiadUZnKVSr07-Fs9YzdFs-dN3EZZvA5oOnbTbF7Y3n-VAh8uNx7E56wC69NZJOvcnpQzM_M3-7y5xRPL0NgCmhmkt_ieuxJWCtmC-4ugLF56g2yKzAEu81PQ6cnH6k1_pGkobY4eZlQjAD99kaYM7X_-DwM49ShQILpESCw7PgQj2X2iKoqDv2Ue6vls1h0TYGRPXo_ISLBQtM4rljuhgU_HybpQ7Aviz2gJ0-UTQ.b8fMzvxJaj9qR4Dutjfr7A,2859052476288557099,1482407842225,true,,eyJraWQiOiIyIiwiYWxnIjoiSFMyNTYifQ..Bg6qSZSZK8GH84U9GmVSDVhtV8_4hs0HeQjySgyLckI; uid=gZoRfqCcyszTEF2Zl2ELYaBaRiQgxWr741UabafV0yk%3D; _pulse2data=1702d074-e9ce-457a-964b-deaa6058d9ef,v,x,1480874289076,eyJraWQiOiJhODFmNDQ0OSIsImVuYyI6IkExMjhDQkMtSFMyNTYiLCJhbGciOiJkaXIifQ..IvA1cqz1acQYDGXRZIBdcg.5C6GlVsvKBULKhcFsJXDC7sVW1oA5Dnaca7QA5SeW7hB1zjbdT9AWFY6pvd2_rQqcBa3Cxo3-ceSjXPO-95g74O0c8cvfPzS-V-anVD2LL5fEAvoQaeeJFXMLS0FhF054htBrP_dggtaliOkLC9V8s6xJhkTNAKsNQ_mKGxbxWZ_jXpVipp7AI2AvP1YSXRjN9ftzCSoo7d2B_FyRp_p0Ylmxfbfrewu3x-7npfoARM.BPDfNt-lFzi7IsnpuZzsrA,2859052476288557099,1480887789076,true,,eyJraWQiOiIxIiwiYWxnIjoiSFMyNTYifQ..R4qsTbeV9RJGSvKHxGJktWscLZi6kxs2ztnzSoqK1rs; atidvisitor=%7B%22name%22%3A%22atidvisitor%22%2C%22val%22%3A%7B%22vrn%22%3A%22-578706-%22%7D%2C%22options%22%3A%7B%22path%22%3A%22%2F%22%2C%22session%22%3A15724800%2C%22end%22%3A15724800%7D%7D; s=red1x428a725ef84a86b99cc9b64532f82b665fb746c0; sli=1; my_ads_resync=24686511__384904c0-9b66-4c6c-9f12-31cef0111e3b; last_resync=1489048403807; oas_ab=a' -H 'Connection: keep-alive' -H 'Upgrade-Insecure-Requests: 1' -H 'Content-Type: multipart/form-data; boundary=---------------------------153794434810136349831074716946' --data-binary $'-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="check_type_diff"\r\n\r\n0\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="category"\r\n\r\n35\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="company_ad"\r\n\r\n0\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="type"\r\n\r\ns\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="subject"\r\n\r\nPlaces Outrage\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="brand"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="regdate"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="mileage"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="fuel"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="gearbox"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="cubic_capacity"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="real_estate_type"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="furnished"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="square"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="rooms"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="energy_rate"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="ges"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="capacity"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="swimming_pool"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="bedrooms"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="clothing_type"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="clothing_st"\r\n\r\n0\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="shoe_type"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="shoe_size"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="baby_age"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="jobcontract"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="jobfield"\r\n\r\n0\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="jobduty"\r\n\r\n0\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="jobexp"\r\n\r\n0\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="jobstudy"\r\n\r\n0\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="jobtime"\r\n\r\n1\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="animal_offer_nature"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="animal_race"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="animal_age"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="animal_litter"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="animal_litter_number"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="animal_identification"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="datepicker_begin_date"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="availability_begin_date"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="datepicker_end_date"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="availability_end_date"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="availability_price"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="price_min"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="price_max"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="body"\r\n\r\nPlaces outrage \xe0 vendre. Concert bient\xf4t.\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="custom_ref"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="price"\r\n\r\n37\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="charges_included"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="fai_included"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="image0"; filename=""\r\nContent-Type: application/octet-stream\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="image1"; filename=""\r\nContent-Type: application/octet-stream\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="image2"; filename=""\r\nContent-Type: application/octet-stream\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="image3"; filename=""\r\nContent-Type: application/octet-stream\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="image4"; filename=""\r\nContent-Type: application/octet-stream\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="image5"; filename=""\r\nContent-Type: application/octet-stream\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="image6"; filename=""\r\nContent-Type: application/octet-stream\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="image7"; filename=""\r\nContent-Type: application/octet-stream\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="image8"; filename=""\r\nContent-Type: application/octet-stream\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="image9"; filename=""\r\nContent-Type: application/octet-stream\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="location_p"\r\n\r\nBordeaux\xa033000\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="zipcode"\r\n\r\n33000\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="city"\r\n\r\nBordeaux\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="region"\r\n\r\n2\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="dpt_code"\r\n\r\n33\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="address"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="meeting_point_id"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="accept_localisation"\r\n\r\non\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="latitude"\r\n\r\n44.83885\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="longitude"\r\n\r\n-0.58115\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="geo_source"\r\n\r\ncity\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="geo_provider"\r\n\r\nlbc\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="adreply_type"\r\n\r\n1\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="adreply_redirect"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="name"\r\n\r\n${LOGIN}\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="email"\r\n\r\n${MAIL}\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="phone"\r\n\r\n0606060606\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="phone_hidden"\r\n\r\n1\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="no_salesmen"\r\n\r\n1\r\n---------------------------153794434810136349831074716946--\r\n' \
> "/tmp/Sortie${lindexIN}.html"

	lindexIN=${lindexOUT}
	lindexOUT=`expr ${lindexIN} + 1`
	lCookiesIN="/tmp/cookies${lindexIN}.txt"
	lCookiesOUT="/tmp/cookies${lindexOUT}.txt"
	curl -L --silent \
'https://www2.leboncoin.fr/ai/preview/0' -H 'Host: www2.leboncoin.fr' -H 'User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0' -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' -H 'Accept-Language: en-US,en;q=0.5' --compressed -H 'Referer: https://www2.leboncoin.fr/ai/form/0?ca=2_s' -H 'Cookie: cookieFrame=2; utag_main=v_id:015467a2116c0017f49188a9066d0104c001900900bd0$_sn:172$_ss:0$_st:1489050359709$_pn:7%3Bexp-session$ses_id:1489048105883%3Bexp-session; xtvrn=$562498$266818$; xtan562498=1-24686511; xtant562498=1; watch_status=sc:0; ABTasty=LPT148158%3A-2.1477157618%5E%7C%5EABTastyUTMB%3A1%5E%7C%5ELiwioTracking%3A16102219333869813%5E%7C%5EsegmentationTracking%3A16102219333869813%5E%7C%5ELiwioUTMA%3A0.15.1477157618431.1480809976175.1481836207002.4; hideCookieFrame=1; _pulse2data=1702d074-e9ce-457a-964b-deaa6058d9ef,v,x,1482394342225,eyJpc3N1ZWRBdCI6IjIwMTYtMTItMjJUMDc6MTlaIiwiZW5jIjoiQTEyOENCQy1IUzI1NiIsImFsZyI6ImRpciIsImtpZCI6IjIifQ..dfK3WyE0l0r_ifKM2E2KMw.bAiadUZnKVSr07-Fs9YzdFs-dN3EZZvA5oOnbTbF7Y3n-VAh8uNx7E56wC69NZJOvcnpQzM_M3-7y5xRPL0NgCmhmkt_ieuxJWCtmC-4ugLF56g2yKzAEu81PQ6cnH6k1_pGkobY4eZlQjAD99kaYM7X_-DwM49ShQILpESCw7PgQj2X2iKoqDv2Ue6vls1h0TYGRPXo_ISLBQtM4rljuhgU_HybpQ7Aviz2gJ0-UTQ.b8fMzvxJaj9qR4Dutjfr7A,2859052476288557099,1482407842225,true,,eyJraWQiOiIyIiwiYWxnIjoiSFMyNTYifQ..Bg6qSZSZK8GH84U9GmVSDVhtV8_4hs0HeQjySgyLckI; uid=gZoRfqCcyszTEF2Zl2ELYaBaRiQgxWr741UabafV0yk%3D; _pulse2data=1702d074-e9ce-457a-964b-deaa6058d9ef,v,x,1480874289076,eyJraWQiOiJhODFmNDQ0OSIsImVuYyI6IkExMjhDQkMtSFMyNTYiLCJhbGciOiJkaXIifQ..IvA1cqz1acQYDGXRZIBdcg.5C6GlVsvKBULKhcFsJXDC7sVW1oA5Dnaca7QA5SeW7hB1zjbdT9AWFY6pvd2_rQqcBa3Cxo3-ceSjXPO-95g74O0c8cvfPzS-V-anVD2LL5fEAvoQaeeJFXMLS0FhF054htBrP_dggtaliOkLC9V8s6xJhkTNAKsNQ_mKGxbxWZ_jXpVipp7AI2AvP1YSXRjN9ftzCSoo7d2B_FyRp_p0Ylmxfbfrewu3x-7npfoARM.BPDfNt-lFzi7IsnpuZzsrA,2859052476288557099,1480887789076,true,,eyJraWQiOiIxIiwiYWxnIjoiSFMyNTYifQ..R4qsTbeV9RJGSvKHxGJktWscLZi6kxs2ztnzSoqK1rs; atidvisitor=%7B%22name%22%3A%22atidvisitor%22%2C%22val%22%3A%7B%22vrn%22%3A%22-578706-%22%7D%2C%22options%22%3A%7B%22path%22%3A%22%2F%22%2C%22session%22%3A15724800%2C%22end%22%3A15724800%7D%7D; s=red1x428a725ef84a86b99cc9b64532f82b665fb746c0; sli=1; my_ads_resync=24686511__384904c0-9b66-4c6c-9f12-31cef0111e3b; last_resync=1489048403807; oas_ab=a' -H 'Connection: keep-alive' -H 'Upgrade-Insecure-Requests: 1' \
> "/tmp/Sortie${lindexIN}.html"
}

input
creerAnnonce2

Script_AVEC_FichierCookies.sh

#!/bin/sh

input()
{
	echo "Entre le Login sur le site LeBonCoin"
	read LOGIN

	echo "Entre le Pass sur le site LeBonCoin"
	read PASS

	echo "Entre le Pseudo A Afficher"
	read PSEUDO
}

creerAnnonce3()
{
	find "/tmp" -iname "Sortie*.html" -exec rm "{}" \;
	find "/tmp" -iname "cookies*.txt" -exec rm "{}" \;

	lindexIN=0
	lindexOUT=0


	


###################
# Afficher page
##################
	lindexIN=${lindexOUT}
	lindexOUT=`expr ${lindexIN} + 1`
	lCookiesIN="/tmp/cookies${lindexIN}.txt"
	lCookiesOUT="/tmp/cookies${lindexOUT}.txt"
	curl -L --silent \
	-b "${lCookiesIN}" \
	-c "${lCookiesOUT}" \
'https://compteperso.leboncoin.fr/' -H 'Host: compteperso.leboncoin.fr' -H 'User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0' -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' -H 'Accept-Language: en-US,en;q=0.5' --compressed -H 'Connection: keep-alive' -H 'Upgrade-Insecure-Requests: 1' \
> "/tmp/Sortie${lindexIN}.html"

	lindexIN=${lindexOUT}
	lindexOUT=`expr ${lindexIN} + 1`
	lCookiesIN="/tmp/cookies${lindexIN}.txt"
	lCookiesOUT="/tmp/cookies${lindexOUT}.txt"
	curl -L --silent \
	-b "${lCookiesIN}" \
	-c "${lCookiesOUT}" \
'https://compteperso.leboncoin.fr/account/index.html' -H 'Host: compteperso.leboncoin.fr' -H 'User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0' -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' -H 'Accept-Language: en-US,en;q=0.5' --compressed -H 'Connection: keep-alive' -H 'Upgrade-Insecure-Requests: 1' \
> "/tmp/Sortie${lindexIN}.html"


###################
# Connexion
##################

	lindexIN=${lindexOUT}
	lindexOUT=`expr ${lindexIN} + 1`
	lCookiesIN="/tmp/cookies${lindexIN}.txt"
	lCookiesOUT="/tmp/cookies${lindexOUT}.txt"
	curl -L --silent \
	-b "${lCookiesIN}" \
	-c "${lCookiesOUT}" \
'https://compteperso.leboncoin.fr/store/verify_login/0?s=red1x428a725ef84a86b99cc9b64532f82b665fb746c0' -H 'Host: compteperso.leboncoin.fr' -H 'User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0' -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' -H 'Accept-Language: en-US,en;q=0.5' --compressed -H 'Connection: keep-alive' -H 'Upgrade-Insecure-Requests: 1' --data "st_username=${LOGIN}&st_passwd=${PASS}" \
> "/tmp/Sortie${lindexIN}.html"

	lindexIN=${lindexOUT}
	lindexOUT=`expr ${lindexIN} + 1`
	lCookiesIN="/tmp/cookies${lindexIN}.txt"
	lCookiesOUT="/tmp/cookies${lindexOUT}.txt"
	curl -L --silent \
	-b "${lCookiesIN}" \
	-c "${lCookiesOUT}" \
'https://compteperso.leboncoin.fr/store/main/0' -H 'Host: compteperso.leboncoin.fr' -H 'User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0' -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' -H 'Accept-Language: en-US,en;q=0.5' --compressed -H 'Referer: https://compteperso.leboncoin.fr/account/index.html' -H 'Connection: keep-alive' -H 'Upgrade-Insecure-Requests: 1' \
> "/tmp/Sortie${lindexIN}.html"

	lindexIN=${lindexOUT}
	lindexOUT=`expr ${lindexIN} + 1`
	lCookiesIN="/tmp/cookies${lindexIN}.txt"
	lCookiesOUT="/tmp/cookies${lindexOUT}.txt"
	curl -L --silent \
	-b "${lCookiesIN}" \
	-c "${lCookiesOUT}" \
'https://compteperso.leboncoin.fr/store/list/0?o=0&fm=1' -H 'Host: compteperso.leboncoin.fr' -H 'User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0' -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' -H 'Accept-Language: en-US,en;q=0.5' --compressed -H 'Referer: https://compteperso.leboncoin.fr/account/index.html' -H 'Connection: keep-alive' -H 'Upgrade-Insecure-Requests: 1' \
> "/tmp/Sortie${lindexIN}.html"

	lindexIN=${lindexOUT}
	lindexOUT=`expr ${lindexIN} + 1`
	lCookiesIN="/tmp/cookies${lindexIN}.txt"
	lCookiesOUT="/tmp/cookies${lindexOUT}.txt"
	curl -L --silent \
	-b "${lCookiesIN}" \
	-c "${lCookiesOUT}" \
'https://compteperso.leboncoin.fr/account/?ca=12_s' -H 'Host: compteperso.leboncoin.fr' -H 'User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0' -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' -H 'Accept-Language: en-US,en;q=0.5' --compressed -H 'Referer: https://compteperso.leboncoin.fr/account/index.html' -H 'Connection: keep-alive' -H 'Upgrade-Insecure-Requests: 1' \
> "/tmp/Sortie${lindexIN}.html"

	lindexIN=${lindexOUT}
	lindexOUT=`expr ${lindexIN} + 1`
	lCookiesIN="/tmp/cookies${lindexIN}.txt"
	lCookiesOUT="/tmp/cookies${lindexOUT}.txt"
	curl -L --silent \
	-b "${lCookiesIN}" \
	-c "${lCookiesOUT}" \
'https://compteperso.leboncoin.fr/account/index.html?ca=12_s' -H 'Host: compteperso.leboncoin.fr' -H 'User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0' -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' -H 'Accept-Language: en-US,en;q=0.5' --compressed -H 'Referer: https://compteperso.leboncoin.fr/account/index.html' -H 'Connection: keep-alive' -H 'Upgrade-Insecure-Requests: 1' \
> "/tmp/Sortie${lindexIN}.html"


###################
# Deposer annonce
##################
	lindexIN=${lindexOUT}
	lindexOUT=`expr ${lindexIN} + 1`
	lCookiesIN="/tmp/cookies${lindexIN}.txt"
	lCookiesOUT="/tmp/cookies${lindexOUT}.txt"
	curl -L --silent \
	-b "${lCookiesIN}" \
	-c "${lCookiesOUT}" \
'https://www2.leboncoin.fr/ai?ca=2_s' -H 'Host: www2.leboncoin.fr' -H 'User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0' -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' -H 'Accept-Language: en-US,en;q=0.5' --compressed -H 'Referer: https://compteperso.leboncoin.fr/account/index.html?ca=12_s' -H 'Connection: keep-alive' -H 'Upgrade-Insecure-Requests: 1' \
> "/tmp/Sortie${lindexIN}.html"

	lindexIN=${lindexOUT}
	lindexOUT=`expr ${lindexIN} + 1`
	lCookiesIN="/tmp/cookies${lindexIN}.txt"
	lCookiesOUT="/tmp/cookies${lindexOUT}.txt"
	curl -L --silent \
	-b "${lCookiesIN}" \
	-c "${lCookiesOUT}" \
'https://www2.leboncoin.fr/ai/load/0?ca=2_s' -H 'Host: www2.leboncoin.fr' -H 'User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0' -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' -H 'Accept-Language: en-US,en;q=0.5' --compressed -H 'Referer: https://compteperso.leboncoin.fr/account/index.html?ca=12_s' -H 'Connection: keep-alive' -H 'Upgrade-Insecure-Requests: 1' \
> "/tmp/Sortie${lindexIN}.html"

	lindexIN=${lindexOUT}
	lindexOUT=`expr ${lindexIN} + 1`
	lCookiesIN="/tmp/cookies${lindexIN}.txt"
	lCookiesOUT="/tmp/cookies${lindexOUT}.txt"
	curl -L --silent \
	-b "${lCookiesIN}" \
	-c "${lCookiesOUT}" \
'https://www2.leboncoin.fr/ai/form/0?ca=2_s' -H 'Host: www2.leboncoin.fr' -H 'User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0' -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' -H 'Accept-Language: en-US,en;q=0.5' --compressed -H 'Referer: https://compteperso.leboncoin.fr/account/index.html?ca=12_s' -H 'Connection: keep-alive' -H 'Upgrade-Insecure-Requests: 1' \
> "/tmp/Sortie${lindexIN}.html"

####################
# POST VRAIMENT
####################
	lindexIN=${lindexOUT}
	lindexOUT=`expr ${lindexIN} + 1`
	lCookiesIN="/tmp/cookies${lindexIN}.txt"
	lCookiesOUT="/tmp/cookies${lindexOUT}.txt"
	curl -L --silent \
	-b "${lCookiesIN}" \
	-c "${lCookiesOUT}" \
'https://www2.leboncoin.fr/ai/verify/0' -H 'Host: www2.leboncoin.fr' -H 'User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0' -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' -H 'Accept-Language: en-US,en;q=0.5' --compressed -H 'Referer: https://www2.leboncoin.fr/ai/form/0?ca=2_s' -H 'Connection: keep-alive' -H 'Upgrade-Insecure-Requests: 1' -H 'Content-Type: multipart/form-data; boundary=---------------------------153794434810136349831074716946' --data-binary $'-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="check_type_diff"\r\n\r\n0\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="category"\r\n\r\n35\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="company_ad"\r\n\r\n0\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="type"\r\n\r\ns\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="subject"\r\n\r\nPlaces Outrage\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="brand"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="regdate"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="mileage"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="fuel"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="gearbox"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="cubic_capacity"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="real_estate_type"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="furnished"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="square"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="rooms"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="energy_rate"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="ges"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="capacity"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="swimming_pool"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="bedrooms"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="clothing_type"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="clothing_st"\r\n\r\n0\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="shoe_type"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="shoe_size"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="baby_age"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="jobcontract"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="jobfield"\r\n\r\n0\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="jobduty"\r\n\r\n0\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="jobexp"\r\n\r\n0\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="jobstudy"\r\n\r\n0\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="jobtime"\r\n\r\n1\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="animal_offer_nature"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="animal_race"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="animal_age"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="animal_litter"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="animal_litter_number"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="animal_identification"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="datepicker_begin_date"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="availability_begin_date"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="datepicker_end_date"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="availability_end_date"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="availability_price"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="price_min"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="price_max"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="body"\r\n\r\nPlaces outrage \xe0 vendre. Concert bient\xf4t.\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="custom_ref"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="price"\r\n\r\n37\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="charges_included"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="fai_included"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="image0"; filename=""\r\nContent-Type: application/octet-stream\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="image1"; filename=""\r\nContent-Type: application/octet-stream\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="image2"; filename=""\r\nContent-Type: application/octet-stream\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="image3"; filename=""\r\nContent-Type: application/octet-stream\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="image4"; filename=""\r\nContent-Type: application/octet-stream\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="image5"; filename=""\r\nContent-Type: application/octet-stream\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="image6"; filename=""\r\nContent-Type: application/octet-stream\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="image7"; filename=""\r\nContent-Type: application/octet-stream\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="image8"; filename=""\r\nContent-Type: application/octet-stream\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="image9"; filename=""\r\nContent-Type: application/octet-stream\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="location_p"\r\n\r\nBordeaux\xa033000\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="zipcode"\r\n\r\n33000\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="city"\r\n\r\nBordeaux\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="region"\r\n\r\n2\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="dpt_code"\r\n\r\n33\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="address"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="meeting_point_id"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="accept_localisation"\r\n\r\non\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="latitude"\r\n\r\n44.83885\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="longitude"\r\n\r\n-0.58115\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="geo_source"\r\n\r\ncity\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="geo_provider"\r\n\r\nlbc\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="adreply_type"\r\n\r\n1\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="adreply_redirect"\r\n\r\n\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="name"\r\n\r\n${LOGIN}\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="email"\r\n\r\n${MAIL}\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="phone"\r\n\r\n0606060606\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="phone_hidden"\r\n\r\n1\r\n-----------------------------153794434810136349831074716946\r\n\r\nContent-Disposition: form-data; name="no_salesmen"\r\n\r\n1\r\n---------------------------153794434810136349831074716946--\r\n' \
> "/tmp/Sortie${lindexIN}.html"

	lindexIN=${lindexOUT}
	lindexOUT=`expr ${lindexIN} + 1`
	lCookiesIN="/tmp/cookies${lindexIN}.txt"
	lCookiesOUT="/tmp/cookies${lindexOUT}.txt"
	curl -L --silent \
	-b "${lCookiesIN}" \
	-c "${lCookiesOUT}" \
'https://www2.leboncoin.fr/ai/preview/0' -H 'Host: www2.leboncoin.fr' -H 'User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0' -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' -H 'Accept-Language: en-US,en;q=0.5' --compressed -H 'Referer: https://www2.leboncoin.fr/ai/form/0?ca=2_s' -H 'Connection: keep-alive' -H 'Upgrade-Insecure-Requests: 1' \
> "/tmp/Sortie${lindexIN}.html"
}

input
creerAnnonce3

J'ai cherché pendant plusieurs jours mais je ne trouve pas. Je désespère.

Merci pour votre aide.

#22 Re : -1 »  Poster une annonce automatiquement » Le 28/02/2017, à 23:10

chris_wafer
Réponses : 15

Je progresse, je progresse, je suis arrivé à me logguer!!!

Mais quand je veux poster une nouvelle annonce avec MECHANISE, il me répond : "301 Moved Permanently".

Quelqu'un peut me dire où il y a on erreur, car je patoge là... Merci.

Voici mon code :

 
#!/usr/bin/perl
 
use strict; use warnings;
use WWW::Mechanize;
use HTML::Tree;
use Time::HiRes qw(gettimeofday);
use IO::Handle;
 
#-----------------------------------------------------
my $lLogin = 'MonMail';
my $lPass = 'MonPass';
my $lAlias = 'MonAlias';
my $lPhone = 'MonPhone';
#-----------------------------------------------------
 
my $url = "";
my $return = "";
my $fichier = "";
my $bot = WWW::Mechanize->new(
  agent => "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0",
  timeout     => 3,
  autocheck   => 1,       # check success of each query
  stack_depth => 0,       # no keeping history
  keep_alive  => 50,      # connection pool
);
$bot->stack_depth(0);
 
open my $debugfile, '>traffic.txt';
$debugfile->autoflush(1);
 
$bot->add_handler( request_send => sub {
    my $cur_time = gettimeofday();
    my $req = shift;
    print $debugfile "\n$cur_time === BEGIN HTTP REQUEST ===\n";
    print $debugfile $req->dump();
    print $debugfile "\n$cur_time ===   END HTTP REQUEST ===\n";
    return
  }
);
$bot->add_handler( response_header => sub {
    my $cur_time = gettimeofday();
    my $res = shift;
    print $debugfile "\n$cur_time === GOT RESPONSE HDRS ===\n";
    print $debugfile $res->dump();
    return
  }
);
$bot->add_handler( response_data => sub {
    my $cur_time = gettimeofday();
    my $res = shift;
    my $content_length = length($res->content);
    print $debugfile "$cur_time === Got response data chunk resp size = $content_length ===\n";
    return
  }
);
$bot->add_handler( response_done => sub {
    my $cur_time = gettimeofday();
    my $res = shift;
    print $debugfile "\n$cur_time === BEGIN HTTP RESPONSE ===\n";
    print $debugfile $res->dump();
    print $debugfile "\n===   END HTTP RESPONSE ===\n";
    return
  }
);
 
unlink 'cookies.txt';
 
$bot->cookie_jar(
        HTTP::Cookies->new(
            file           => "cookies.txt",
            autosave       => 1,
            ignore_discard => 1,
        )
);
 
 
sub AjouterAnnonces()
{
	$url = "https://compteperso.leboncoin.fr/store/verify_login";
	$bot->get($url);
 
	$return=$bot->form_name('loginform');
	$return=$bot->field( st_username => $lLogin );
	$return=$bot->field( st_passwd => $lPass );
	$return=$bot->submit();
 
	$url = "https://compteperso.leboncoin.fr/store/verify_login";
	$bot->get($url);
 
	$url = "https://www.leboncoin.fr/ai?ca=12_s";
	$return=$bot->get($url);
 
    # ===================================================================
    # > Débeugage
    # ===================================================================
	$fichier="MaSortie01.html";
    print "01\n";
	print "REPONSE (is_success) : ", $bot->response->is_success, "\n";
	print "REPONSE (status_line) : ", $bot->response->status_line, "\n";
	print "REPONSE (error_as_HTML) : ", $bot->response->error_as_HTML, "\n";
	open(MON_FICHIER, ">$fichier") || die "Erreur E/S:$!\n";
	print MON_FICHIER $bot->content;
    close(MON_FICHIER);
    # ===================================================================
 
	my $id_annonce=$return->base;
	$id_annonce =~ s/\?.*$//;
	$id_annonce =~ s/^.*\///;
 
	$url="https://www.leboncoin.fr/ai/verify/$id_annonce";
	$return = $bot->post(
	  		$url,
	  		[ 'check_type_diff' => '0',
	    		'category' => '35',
	    		'company_ad' => '0',
	    		'type' => '5',
	    		'subject' => 'Places concert Muse',
	    		'brand' => '',
				'regdate' => '',
				'mileage' => '',
				'fuel' => '',
				'gearbox' => '',
				'cubic_capacity' => '',
				'real_estate_type' => '',
				'furnished' => '',
				'square' => '',
				'rooms' => '',
				'energy_rate' => '',
				'ges' => '',
				'capacity' => '',
				'swimming_pool' => '',
				'bedrooms' => '',
				'clothing_type' => '',
				'clothing_st' => '',
				'shoe_type' => '',
				'shoe_size' => '',
				'baby_age' => '',
				'jobcontract' => '',
				'jobfield' => '0',
				'jobduty' => '0',
				'jobexp' => '0',
				'jobstudy' => '0',
				'jobtime' => '1',
				'animal_offer_nature' => '',
				'animal_race' => '',
				'animal_age' => '',
				'animal_litter' => '',
				'animal_litter_number' => '',
				'animal_identification' => '',
				'datepicker_begin_date' => '',
				'availability_begin_date' => '',
				'datepicker_end_date' => '',
				'availability_end_date' => '',
				'availability_price' => '',
				'price_min' => '',
				'price_max' => '',
				'body' => 'Vend places concert Muse. A Bordeaux.',
				'custom_ref' => '',
				'price' => '90',
				'charges_included' => '',
				'fai_included' => '',
				'image0' => [
				    undef,   # yes, undef!
				    '', #filename
				    'Content_Type' => 'application/octet-stream',
				    'Content' => ''
				],
				'image1' => [
				    undef,   # yes, undef!
				    '', #filename
				    'Content_Type' => 'application/octet-stream',
				    'Content' => ''
				],
				'image2' => [
				    undef,   # yes, undef!
				    '', #filename
				    'Content_Type' => 'application/octet-stream',
				    'Content' => ''
				],
				'image3' => [
				    undef,   # yes, undef!
				    '', #filename
				    'Content_Type' => 'application/octet-stream',
				    'Content' => ''
				],
				'image4' => [
				    undef,   # yes, undef!
				    '', #filename
				    'Content_Type' => 'application/octet-stream',
				    'Content' => ''
				],
				'image5' => [
				    undef,   # yes, undef!
				    '', #filename
				    'Content_Type' => 'application/octet-stream',
				    'Content' => ''
				],
				'image6' => [
				    undef,   # yes, undef!
				    '', #filename
				    'Content_Type' => 'application/octet-stream',
				    'Content' => ''
				],
				'image7' => [
				    undef,   # yes, undef!
				    '', #filename
				    'Content_Type' => 'application/octet-stream',
				    'Content' => ''
				],
				'image7' => [
				    undef,   # yes, undef!
				    '', #filename
				    'Content_Type' => 'application/octet-stream',
				    'Content' => ''
				],
				'image8' => [
				    undef,   # yes, undef!
				    '', #filename
				    'Content_Type' => 'application/octet-stream',
				    'Content' => ''
				],
				'image9' => [
				    undef,   # yes, undef!
				    '', #filename
				    'Content_Type' => 'application/octet-stream',
				    'Content' => ''
				],
				'location_p' => 'Bordeaux 33000',
				'zipcode' => '33000',
				'city' => 'Bordeaux',
				'region' => '2',
				'dpt_code' => '',
				'location_p' => '33',
				'address' => '',
				'meeting_point_id' => '',
				'accept_localisation' => 'on',
				'latitude' => '44.83885',
				'longitude' => '-0.58115',
				'geo_source' => 'city',
				'geo_provider' => 'lbc',
				'adreply_type' => '1',
				'adreply_redirect' => '',
				'name' => "$lAlias",
				'email' => "$lLogin",
				'phone' => "$lPhone",
				'phone_hidden' => '1',
				'no_salesmen' => '1'
 
	  		],
	  	'Content_Type' => 'form-data'
	  	);
 
    # ===================================================================
    # > Débeugage
    # ===================================================================
	$fichier="MaSortie02.html";
    print "02\n";
	print "REPONSE (is_success) : ", $bot->response->is_success, "\n";
	print "REPONSE (status_line) : ", $bot->response->status_line, "\n";
	print "REPONSE (error_as_HTML) : ", $bot->response->error_as_HTML, "\n";
	open(MON_FICHIER, ">$fichier") || die "Erreur E/S:$!\n";
	print MON_FICHIER $bot->content;
    close(MON_FICHIER);
    # ===================================================================
 
	$url="https://www2.leboncoin.fr/ai/preview/$id_annonce";
	$return = $bot->get($url);
 
    # ===================================================================
    # > Débeugage
    # ===================================================================
	$fichier="MaSortie03.html";
    print "03\n";
	print "REPONSE (is_success) : ", $bot->response->is_success, "\n";
	print "REPONSE (status_line) : ", $bot->response->status_line, "\n";
	print "REPONSE (error_as_HTML) : ", $bot->response->error_as_HTML, "\n";
	open(MON_FICHIER, ">$fichier") || die "Erreur E/S:$!\n";
	print MON_FICHIER $bot->content;
    close(MON_FICHIER);    
    # ===================================================================
 
	$url="https://www2.leboncoin.fr/ai/create/$id_annonce";
	$return = $bot->post(
	  		$url,
	  		[ 'category' => '33',
	  		  'city' => 'Bordeaux',
	  		  'accept_rule' => '1',
	  		  'create' => 'Valider mon annonce',
	  		  'create2' => 'Valider',
	  		  'category' => '35',
	  		  'category' => '35',
	  		  'category' => '35'
 
	  		],
	  	'Content_Type' => 'form-data'
	  	);
 
    # ===================================================================
    # > Débeugage
    # ===================================================================
	$fichier="MaSortie04.html";
    print "04\n";
	print "REPONSE (is_success) : ", $bot->response->is_success, "\n";
	print "REPONSE (status_line) : ", $bot->response->status_line, "\n";
	print "REPONSE (error_as_HTML) : ", $bot->response->error_as_HTML, "\n";
	open(MON_FICHIER, ">$fichier") || die "Erreur E/S:$!\n";
	print MON_FICHIER $bot->content;
    close(MON_FICHIER);    
    # ===================================================================
 
	$url="https://www2.leboncoin.fr/ai/confirm_no_pay/$id_annonce";
	$return = $bot->get($url);
 
    # ===================================================================
    # > Débeugage
    # ===================================================================
	$fichier="MaSortie05.html";
    print "05\n";	
    print "REPONSE (is_success) : ", $bot->response->is_success, "\n";
	print "REPONSE (status_line) : ", $bot->response->status_line, "\n";
	print "REPONSE (error_as_HTML) : ", $bot->response->error_as_HTML, "\n";
	open(MON_FICHIER, ">$fichier") || die "Erreur E/S:$!\n";
	print MON_FICHIER $bot->content;
    close(MON_FICHIER);    
    # ===================================================================
 
}
 
AjouterAnnonces();

#23 Re : -1 »  [Résolu] Curl et connexion » Le 17/02/2017, à 04:14

chris_wafer
Réponses : 12

J'y arrive à peu près avec le bon coin.
Mais j'arrive à la commande suivante :

curl --silent \
-b /tmp/cookies \
-c /tmp/cookies \
'https://www.leboncoin.fr/ai/verify/0' \
-H 'Host: www.leboncoin.fr' \
-H 'User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0' \
-H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' \
-H 'Accept-Language: en-US,en;q=0.5' \
--compressed \
-H 'Referer: https://www.leboncoin.fr/ai/form/0' \
-H 'Connection: keep-alive' \
-H 'Upgrade-Insecure-Requests: 1' \
-H 'Content-Type: multipart/form-data; boundary=---------------------------1855287202331431558583870453' \
--data-binary $'-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="check_type_diff"\r\n\r\n0\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="category"\r\n\r\n35\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="company_ad"\r\n\r\n0\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="type"\r\n\r\ns\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="subject"\r\n\r\nVend places concert Muse\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="brand"\r\n\r\n\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="regdate"\r\n\r\n\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="mileage"\r\n\r\n\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="fuel"\r\n\r\n\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="gearbox"\r\n\r\n\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="cubic_capacity"\r\n\r\n\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="real_estate_type"\r\n\r\n\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="furnished"\r\n\r\n\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="square"\r\n\r\n\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="rooms"\r\n\r\n\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="energy_rate"\r\n\r\n\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="ges"\r\n\r\n\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="capacity"\r\n\r\n\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="swimming_pool"\r\n\r\n\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="bedrooms"\r\n\r\n\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="clothing_type"\r\n\r\n\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="clothing_st"\r\n\r\n0\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="shoe_type"\r\n\r\n\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="shoe_size"\r\n\r\n\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="baby_age"\r\n\r\n\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="jobcontract"\r\n\r\n\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="jobfield"\r\n\r\n0\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="jobduty"\r\n\r\n0\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="jobexp"\r\n\r\n0\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="jobstudy"\r\n\r\n0\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="jobtime"\r\n\r\n1\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="animal_offer_nature"\r\n\r\n\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="animal_race"\r\n\r\n\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="animal_age"\r\n\r\n\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="animal_litter"\r\n\r\n\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="animal_litter_number"\r\n\r\n\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="animal_identification"\r\n\r\n\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="datepicker_begin_date"\r\n\r\n\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="availability_begin_date"\r\n\r\n\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="datepicker_end_date"\r\n\r\n\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="availability_end_date"\r\n\r\n\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="availability_price"\r\n\r\n\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="price_min"\r\n\r\n\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="price_max"\r\n\r\n\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="body"\r\n\r\nJe vends des places pour le concert. A venir chercher sur place.\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="custom_ref"\r\n\r\n\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="price"\r\n\r\n45\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="charges_included"\r\n\r\n\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="fai_included"\r\n\r\n\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="image0"; filename=""\r\nContent-Type: application/octet-stream\r\n\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="image1"; filename=""\r\nContent-Type: application/octet-stream\r\n\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="image2"; filename=""\r\nContent-Type: application/octet-stream\r\n\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="image3"; filename=""\r\nContent-Type: application/octet-stream\r\n\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="image4"; filename=""\r\nContent-Type: application/octet-stream\r\n\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="image5"; filename=""\r\nContent-Type: application/octet-stream\r\n\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="image6"; filename=""\r\nContent-Type: application/octet-stream\r\n\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="image7"; filename=""\r\nContent-Type: application/octet-stream\r\n\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="image8"; filename=""\r\nContent-Type: application/octet-stream\r\n\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="image9"; filename=""\r\nContent-Type: application/octet-stream\r\n\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="location_p"\r\n\r\nCenon\xa033150\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="zipcode"\r\n\r\n33150\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="city"\r\n\r\nCenon\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="region"\r\n\r\n2\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="dpt_code"\r\n\r\n33\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="address"\r\n\r\n\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="meeting_point_id"\r\n\r\n\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="accept_localisation"\r\n\r\non\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="latitude"\r\n\r\n44.8583\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="longitude"\r\n\r\n-0.53053\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="geo_source"\r\n\r\ncity\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="geo_provider"\r\n\r\nlbc\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="adreply_type"\r\n\r\n1\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="adreply_redirect"\r\n\r\n\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="name"\r\n\r\nmon_pseudo\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="siren"\r\n\r\n\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="email"\r\n\r\ntutu@toto.com\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="phone"\r\n\r\n0606060606\r\n-----------------------------1855287202331431558583870453\r\n\r\nContent-Disposition: form-data; name="no_salesmen"\r\n\r\n1\r\n---------------------------1855287202331431558583870453--\r\n'

D'où vient ce numéro 1855287202331431558583870453 dans binary ?

#24 Re : -1 »  [Résolu] Curl et connexion » Le 17/02/2017, à 14:19

chris_wafer
Réponses : 12

Quelqu'un peut m'aider?