the simplest way to read httpheaders

Bringing the internet highway into your project? Building FTP, HTTP, email, chat or other client solutions?

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Thierry
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 875
Joined: Wed Nov 22, 2006 3:42 pm

the simplest way to read httpheaders

Post by Thierry » Wed May 27, 2015 4:45 pm

Hi all,

To set some specifics httpHeaders,
we go this way:

Code: Select all

   set the httpHeaders to field  "Httpheaders"
   get URL myURL
But how to get the httpHeaders from the page sent by the server?

Is there a simple way or do I have to go with "open socket ..." ?

Thanks,

Thierry
!
SUNNY-TDZ.COM doesn't belong to me since 2021.
To contact me, use the Private messages. Merci.
!

SparkOut
Posts: 2857
Joined: Sun Sep 23, 2007 4:58 pm

Re: the simplest way to read httpheaders

Post by SparkOut » Wed May 27, 2015 5:34 pm

LibUrlLastRHHeaders is the function you need.

Thierry
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 875
Joined: Wed Nov 22, 2006 3:42 pm

Re: the simplest way to read httpheaders

Post by Thierry » Wed May 27, 2015 6:02 pm

SparkOut wrote:LibUrlLastRHHeaders is the function you need.
Thanks SparkOut.

It works perfectly :)

Regards,

Thierry
!
SUNNY-TDZ.COM doesn't belong to me since 2021.
To contact me, use the Private messages. Merci.
!

SparkOut
Posts: 2857
Joined: Sun Sep 23, 2007 4:58 pm

Re: the simplest way to read httpheaders

Post by SparkOut » Wed May 27, 2015 6:05 pm

Glad to help Thierry, it hardly counts as paying back even just a little that I owe you

Post Reply

Return to “Internet”