It is currently Mon Jan 18, 2021 1:53 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: [Done] PB 5.72 HTTPRequest() does not work as it should
PostPosted: Thu Apr 02, 2020 1:27 pm 
Offline
New User
New User

Joined: Tue Mar 31, 2020 2:00 am
Posts: 1
Location: Germany
HTTPRequest() does not work correctly in conjunction with #PB_HTTP_HeadersOnly.
As it seems, the file is downloaded completly internally and only then the HttpHeaders are displayed!

Here's an example:
Code:
InitNetwork()
  HttpRequest = HTTPRequest (#PB_HTTP_Get, "https://mirror.dogecloud.org/Linux/Mint/stable/19.3/linuxmint-19.3-cinnamon-64bit.iso","",#PB_HTTP_HeadersOnly)
  If HttpRequest
    Debug "Header:" + HTTPInfo (HTTPRequest, #PB_HTTP_Headers)
    FinishHTTP (HTTPRequest)
  Else
   Debug  "Request creation failed"
  EndIf


With GetHTTPHeaders() you get the headers immediately without downloading the complete file!
Code:
InitNetwork()
Debug GetHTTPHeader("https://mirror.dogecloud.org/Linux/Mint/stable/19.3/linuxmint-19.3-cinnamon-64bit.iso")


Greetz Frank

_________________
OS : Linux Mint 19.3 - PB 5.72x64


Top
 Profile  
Reply with quote  
 Post subject: Re: PB 5.72 final - HTTPRequest() does not work as it should
PostPosted: Thu Apr 02, 2020 3:40 pm 
Offline
Addict
Addict
User avatar

Joined: Tue Dec 23, 2003 3:54 am
Posts: 1869
That's not good!

Sorry, this doesn't help you, but on 5.72 final Windows it seems correct:

- GetHTTPHeader() finishes quickly
- HTTPRequest() with #HeadersOnly finishes quickly
- full file request takes a long time

_________________
On GitHub: PB Includes - IDE Tools - Color Themes - IDE Branches - TabBarGadget Mods


Top
 Profile  
Reply with quote  
 Post subject: Re: PB 5.72 final - HTTPRequest() does not work as it should
PostPosted: Tue Nov 17, 2020 3:23 pm 
Offline
Administrator
Administrator

Joined: Fri May 17, 2002 4:39 pm
Posts: 14181
Location: France
Fixed.


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

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


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