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 previous 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

 
Read Message
Read Message
Previous Topic: Why SshExec close the connexion ?
Next Topic: How to use CoWork and Progress together?
Goto Forum:
  


Current Time: Wed Jun 03 04:57:54 CEST 2020

Total time taken to generate the page: 0.02102 seconds