Merci beaucoup !
Avec la méthode Curl , jen ne récupère qu'une partie de la page, ca s'arrête abruptement :
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="keywords" content="ebooks, ebook, books, book, free, online, audio">
<meta name="description" content="20000 free ebooks online">
<meta name="classification" content="public">
<link rel="stylesheet" type="text/css" href="/css/pg-002.css"> <link rel="shortcut icon" href="/favicon.ico">
<title>Search on Titles > Results - Project Gutenberg</title>
</head>
<body class="IEhack">
<div class="menubar">
<div id="logo" class="logo">
<a tabindex="1" href="/wiki/Main_Page"
title="Go to Main Page"></a>
</div>
<div class="menu">
<div class="menu-group menu-group-open">
<a class="h1" tabindex="30" accesskey="1" title="Go to the online book catalog section - Accesskey=1" href="/catalog/">Online Book Catalog</a>
<span class="menusep">=></span> <form method="post" action="/catalog/world/results"
accept-charset="utf-8" enctype="multipart/form-data">
<fieldset>
<legend>Quick Search</legend>
<div>
<label accesskey="a" for="menu-author">Author:</label>
<input tabindex="20" alt="Author" type="text" size="20" value=""
maxlength="80" id="menu-author" name="author" title="Typ
C'est assez bizarre !
Avec la méthode files_get_content, c'est un autre problème, j'obtiens l'erreur failed_to_open_stream ! :
Warning: file_get_contents(
[ Lien ]) [
function.file-get-contents]: failed to open stream: HTTP request failed! in
/mnt/139/sdb/d/3/neamar/rechercheEbook.php on line
3
Alors que si j'enlève le $request, la page se telecharge sans erreur
Bref, il ne me reste plus que la méthode fsockopen, qui ellle fonctionne sans problème !
Merci beaucoup !
(si quelqu'un sait pk les autres ne marchent pas ?)