FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » example CURL to form in Https
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: example CURL to form in Https [message #177363 is a reply to message #177362] Sun, 18 March 2012 13:37 Go to previous message
J.O. Aho is currently offline  J.O. Aho
Messages: 194
Registered: September 2010
Karma:
Senior Member
Vivian wrote:

<Cut away non needed text as mail footers and things not replayed to>

> 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
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Search or Post Jobs
Next Topic: Stats comp.lang.php (last 7 days)
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Nov 22 11:25:43 GMT 2024

Total time taken to generate the page: 0.03490 seconds