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 » [TO BE DELETED] HttpRequest gzip format error
[TO BE DELETED] HttpRequest gzip format error [message #53141] Sat, 07 March 2020 21:23 Go to next message
Xemuth is currently offline  Xemuth
Messages: 179
Registered: August 2018
Location: France
Experienced 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, 08 March 2020 00:41]

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: 3129
Registered: August 2008
Ultimate Member
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: Wed Jun 03 05:46:03 CEST 2020

Total time taken to generate the page: 0.01459 seconds