Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ MT-multithreading and servers » [NOT REPRODUCIBLE] HttpRequest gzip format error
[NOT REPRODUCIBLE] HttpRequest gzip format error [message #53141] Sat, 07 March 2020 21:23 Go to next message
Xemuth is currently offline  Xemuth
Messages: 387
Registered: August 2018
Location: France
Senior Member
Hello,

I try to retrieve data from an api :
#include <Core/Core.h>

using namespace Upp;

CONSOLE_APP_MAIN
{
	StdLogSetup(LOG_COUT|LOG_FILE);
	HttpRequest myRequest;
	HttpRequest::Trace();
	myRequest.GET();
	myRequest.Url("https://euw1.api.riotgames.com/lol/summoner/v4/summoners/by-name/Xemuth");
	myRequest.Header(X-Riot-Token","RGAPI-2a995009-6aac-48cf-86ea-5db1f11fe11c);
	Cout() << myRequest.Execute() << EOL;
}

Everythings seems to work except this :
https://i.imgur.com/NkQEmnP.png

making data retrieved unreadable.
Someone have any idea ?

Thanks in advance
Best regard

Xemuth

EDIT : For strange reason it worked after few try

[Updated on: Sun, 09 August 2020 00:02] by Moderator

Report message to a moderator

Re: HttpRequest gzip format error [message #53142 is a reply to message #53141] Sat, 07 March 2020 23:58 Go to previous message
koldo is currently offline  koldo
Messages: 3356
Registered: August 2008
Senior Veteran
Trying this in Windows 10 I have got this:

HTTP START
Using euw1.api.riotgames.com:443
Starting status 2 'Resolving host name', url: euw1.api.riotgames.com
HTTP Execute: Resolving host name
HTTP StartConnect
HTTP AfterConnect
HTTP retry on error socket(732) / StartSSL: Missing SSL support (Core/SSL)
Starting status 1 'Start', url: euw1.api.riotgames.com
HTTP Execute: Start
HTTP START
Using euw1.api.riotgames.com:443
Starting status 2 'Resolving host name', url: euw1.api.riotgames.com
HTTP Execute: Resolving host name
HTTP StartConnect
HTTP AfterConnect
HTTP retry on error socket(588) / StartSSL: Missing SSL support (Core/SSL)
Starting status 1 'Start', url: euw1.api.riotgames.com
HTTP Execute: Start
HTTP START
Using euw1.api.riotgames.com:443
Starting status 2 'Resolving host name', url: euw1.api.riotgames.com
HTTP Execute: Resolving host name
HTTP StartConnect
HTTP AfterConnect
HTTP retry on error socket(588) / StartSSL: Missing SSL support (Core/SSL)
Starting status 1 'Start', url: euw1.api.riotgames.com
HTTP Execute: Start
HTTP START
Using euw1.api.riotgames.com:443
Starting status 2 'Resolving host name', url: euw1.api.riotgames.com
HTTP Execute: Resolving host name
HTTP StartConnect
HTTP AfterConnect


Best regards
IƱaki
Previous Topic: Why SshExec close the connexion ?
Next Topic: How to use CoWork and Progress together?
Goto Forum:
  


Current Time: Fri Apr 19 15:33:05 CEST 2024

Total time taken to generate the page: 2.02045 seconds