CURL - SSL

This is a discussion on CURL - SSL within the PHP General forums, part of the PHP Programming Forums category; Anyone knows how to get a simple(HTML) https response using CURL session. Thanks a million!! Rodrigo Nakahodo --- Outgoing mail ...


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 09-17-2003
Rodrigo Nakahodo
 
Posts: n/a
Default CURL - SSL

Anyone knows how to get a simple(HTML) https response using CURL session.

Thanks a million!!


Rodrigo Nakahodo
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.518 / Virus Database: 316 - Release Date: 9/11/2003
Reply With Quote
  #2 (permalink)  
Old 09-18-2003
Marek Kilimajer
 
Posts: n/a
Default Re: [PHP] CURL - SSL

You need php compiled with openssl support.
http://www.php.net/openssl

Rodrigo Nakahodo wrote:
> Anyone knows how to get a simple(HTML) https response using CURL session.
>
> Thanks a million!!
>
>
> Rodrigo Nakahodo
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.518 / Virus Database: 316 - Release Date: 9/11/2003
>

Reply With Quote
  #3 (permalink)  
Old 09-18-2003
William Bailey
 
Posts: n/a
Default How can one find out what Headers have been sent by a script.

Hello all,

Does anybody know of a way that i can check to see if a header has already
been sent by a script?

I am currently finishing a class that has a few functions registered with
register_shutdown_function(). They take care of database updates and general
clean up for that object and i want to be able to perform a different action
depending on if, for example, a 'Location:' header has been sent.

Is there any way i can get a list of headers already sent from a script?

I know i could write a custom myHeader() type function that stores the sent
headers in a variable and then read it back but i want something that i can
add to my class and not have to make any changes to other scripts. The class
im currently working on is just supposed to be dropped in and is then
expected to run without the need to update anything else.

Thanks in advance.

--
Regards,
William Bailey.
Pro-Net Internet Services Ltd.
http://www.pro-net.co.uk/
Reply With Quote
  #4 (permalink)  
Old 09-18-2003
William Bailey
 
Posts: n/a
Default Re: [PHP] How can one find out what Headers have been sent by a script.

I have found something that seems to work:

<?php
header('Location: woof.html');
$h = apache_response_headers();
if(isset($h['Location'])){
header('Location: moo.html');
}
die();
?>

Typical i get stuck on something for ages and then as soon as i post to the
list i figure something out :) oh well hope it helps somebody else.

:)

On Thursday 18 September 2003 15:10, William Bailey wrote:
> Hello all,
>
> Does anybody know of a way that i can check to see if a header has already
> been sent by a script?
>
> I am currently finishing a class that has a few functions registered with
> register_shutdown_function(). They take care of database updates and
> general clean up for that object and i want to be able to perform a
> different action depending on if, for example, a 'Location:' header has
> been sent.
>
> Is there any way i can get a list of headers already sent from a script?
>
> I know i could write a custom myHeader() type function that stores the
> sent headers in a variable and then read it back but i want something that
> i can add to my class and not have to make any changes to other scripts.
> The class im currently working on is just supposed to be dropped in and is
> then expected to run without the need to update anything else.
>
> Thanks in advance.
>
> --
> Regards,
> William Bailey.
> Pro-Net Internet Services Ltd.
> http://www.pro-net.co.uk/


--
Regards,
William Bailey.
Pro-Net Internet Services Ltd.
http://www.pro-net.co.uk/
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 10:08 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0