It is currently Tue Nov 12, 2019 8:34 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: Additional type for HTTPInfo(): #PB_Http_Header
PostPosted: Mon Apr 15, 2019 8:46 pm 
Offline
Addict
Addict

Joined: Sun Sep 07, 2008 12:45 pm
Posts: 4407
Location: Germany
Code:
#PB_Http_Header

should return the complete http header.

Than we can extract what's needed to know.
Like Cookies.


Top
 Profile  
Reply with quote  
 Post subject: Re: Additional type for HTTPInfo(): #PB_Http_Header
PostPosted: Tue Apr 16, 2019 10:04 am 
Offline
Enthusiast
Enthusiast

Joined: Tue May 26, 2009 2:11 pm
Posts: 602
infratec wrote:
Code:
#PB_Http_Header

should return the complete http header.
...
This would be very helpfull.

_________________
Image


Top
 Profile  
Reply with quote  
 Post subject: Re: Additional type for HTTPInfo(): #PB_Http_Header
PostPosted: Tue Apr 16, 2019 10:16 am 
Offline
Administrator
Administrator

Joined: Fri May 17, 2002 4:39 pm
Posts: 13622
Location: France
Nice idea. I guess GetHTTPHeader() could be deprecated then if a new #PB_Http_HeaderOnly flag is added.


Top
 Profile  
Reply with quote  
 Post subject: Re: Additional type for HTTPInfo(): #PB_Http_Header
PostPosted: Tue Apr 16, 2019 11:13 am 
Offline
Addict
Addict

Joined: Sun Sep 07, 2008 12:45 pm
Posts: 4407
Location: Germany
No,
Code:
GetHTTPHeader()

is still needed.

Else you can not check how large a file is what you need to download before you download it.
Maybe you need to check if the file fits in your free memory before you download it.
That's only possible with GetHTTPHeader(), because it makes no real download.

Bernd


Top
 Profile  
Reply with quote  
 Post subject: Re: Additional type for HTTPInfo(): #PB_Http_Header
PostPosted: Tue Apr 16, 2019 2:03 pm 
Offline
Administrator
Administrator

Joined: Fri May 17, 2002 4:39 pm
Posts: 13622
Location: France
That's why I added: "if a new #PB_Http_HeaderOnly flag is added." :)


Top
 Profile  
Reply with quote  
 Post subject: Re: Additional type for HTTPInfo(): #PB_Http_Header
PostPosted: Fri May 31, 2019 6:03 pm 
Offline
Addict
Addict
User avatar

Joined: Tue Dec 23, 2003 3:54 am
Posts: 1671
+1000

Great request, I really hope this can be added for 5.71!

Right now I am resorting to curl.exe because I need access to Cookies / other headers returned from a server.

_________________
On GitHub: PB Includes - IDE Tools - Color Themes


Top
 Profile  
Reply with quote  
 Post subject: Re: Additional type for HTTPInfo(): #PB_Http_Header
PostPosted: Fri May 31, 2019 6:28 pm 
Offline
Addict
Addict

Joined: Sun Sep 07, 2008 12:45 pm
Posts: 4407
Location: Germany
You don't need curl.exe :mrgreen:

libcurl is included in PB. You can use libcurl.pbi (search) to implement what's needed.


Top
 Profile  
Reply with quote  
 Post subject: Re: Additional type for HTTPInfo(): #PB_Http_Header
PostPosted: Fri Oct 18, 2019 9:08 pm 
Offline
Addict
Addict
User avatar

Joined: Thu Aug 07, 2003 7:01 pm
Posts: 3113
Location: United Kingdom
+1 for this, I need it to use tinypng properly:

https://tinypng.com/developers/reference

_________________
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye