Path: csiph.com!usenet.pasdenom.info!news.albasani.net!news2.arglkargh.de!news.karotte.org!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "J.O. Aho" Newsgroups: comp.lang.php Subject: Re: example CURL to form in Https Date: Sun, 18 Mar 2012 14:37:22 +0100 Lines: 31 Message-ID: <9sm6oiFch6U1@mid.individual.net> References: <2e735f94-dbcc-4ff1-9c49-bb11064ce5ad@w5g2000yqi.googlegroups.com> <3e5a290d-a28d-434a-a3d4-2cb7c2db087d@i5g2000yqo.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net PO26LJ31A0LKLN4vTb+Q+wf0k6NGFklRyFGIo/vbvm0wQv+/vZ Cancel-Lock: sha1:tgLXfvHwNrU89vbQgTNyRsGny98= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.1) Gecko/20120217 Firefox/10.0.1 SeaMonkey/2.7.1 In-Reply-To: <3e5a290d-a28d-434a-a3d4-2cb7c2db087d@i5g2000yqo.googlegroups.com> Xref: csiph.com comp.lang.php:5182 Vivian wrote: > where is wrong ? show the blank page only... > > // CLOSE CURL > curl_close ($ch); > > ?> If you don't make any output, then you will not get anything else than a blank page. > // EXECUTE 1st REQUEST (FORM LOGIN) > $store = curl_exec ($ch); > > > // EXECUTE 2nd REQUEST (FILE DOWNLOAD) > $content = curl_exec ($ch); Are you sure making the same request (login) will give you the content? Are you even sure your login was successful? It may be good to use curl_error() to see if something went wrong (if login fails, fetching file will also fail and no point in trying to do that if the login failed). -- //Aho