<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>11 Nov 2014 13:30:09 Z</lastBuildDate><pubDate>11 Nov 2014 10:45:23 Z</pubDate><description>This code gets 'HTTP1.1 200 OK' which means that it returned ok and success&#13;
but does not log me in ?  I have put login and password as 'my login' and ' mypassword'.&#13;
I use WIndev 17,  Internal Version:  01A170078p&#13;
&#13;
In which way login and passwrod must be indicated in this code ???&#13;
&#13;
Could some one help me what I do wrong ??? Please HELP !!!&#13;
&#13;
	LOCAL&#13;
		sHeaders is string = "Content-type:application/json,Accept:application/json,X-ESA-API-Key:ROBOT"&#13;
		sPelihaku is string = "api/v1/sport-games/draws?game-names=MULTISCORE"&#13;
		sUser is string = "{login: my login, password: mypassword, type: STANDARD_LOGIN}"&#13;
		sApi is string = "api/v1/sessions"&#13;
		sSessionID, sHeader is string&#13;
&#13;
	fDelete( "C:\Asioita\Sessionhaku.txt" )&#13;
	fDelete( "C:\Asioita\Sessionhaku.htm" )&#13;
	&#13;
	HTTPCookieManage(".veikkaus.fi", True)&#13;
	&#13;
	HTTPRequest( ...&#13;
		"https://www.veikkaus.fi", ...&#13;
		"", ...&#13;
		sHeaders, ...&#13;
		sApi + ":" + sUser, ...&#13;
		"application/json" )&#13;
		&#13;
	sHeader = HTTPGetResult( httpHeader )&#13;
&#13;
	IF Position( sHeader, "HTTP/1.1 200" ) &gt; 0 THEN		&#13;
		sSessionID = NoSpace( ExtractString( ExtractString( sHeader, 2, "SESSIONID=" ), 1, ";" ) )&#13;
		Info( "SessionID: = " + sSessionID )&#13;
		fSaveText( "C:\Asioita\Sessionhaku.txt", sHeader )&#13;
		fSaveText( "C:\Asioita\Sessionhaku.htm", HTTPGetResult( httpResult )  )&#13;
	ELSE&#13;
		fSaveText( "C:\Asioita\Sessionhaku.txt", sHeader )&#13;
		Info( "Does not work" )&#13;
	END</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/48883-json-hppprequest-what-wrong-does-not-work/read.awp</link><title>JSON + HPPPRequest - What I do Wrong As It does not work !  H E L P !!!</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster><item><author>fromweb</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/48883-json-hppprequest-what-wrong-does-not-work-48896/read.awp</comments><pubDate>11 Nov 2014 13:30:09 Z</pubDate><description>Hi Lasse&#13;
&#13;
once again, without knowing the full spec of the webservice you are &#13;
trying to access, it's impossible to help you,…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/48883-json-hppprequest-what-wrong-does-not-work-48896/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/48883-json-hppprequest-what-wrong-does-not-work-48896/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/48883-json-hppprequest-what-wrong-does-not-work/read.awp">JSON + HPPPRequest - What I do Wrong As It does not work !  H E L P !!!</source><title>Re: JSON + HPPPRequest - What I do Wrong As It does not work !  HE L P !!!</title></item></channel></rss>
