load URL issue

Domotique eric.berdah.domotique at gmail.com
Sun Jan 8 08:28:51 EST 2023


Hello,

I am trying to retrieve some informations from my energy supplier
for this I have 2 URLs which gives me the respective answers in a browser:


the first request : https://particulier.edf.fr/services/rest/referentiel/searchTempoStore?dateRelevant=2023-08-01 <https://particulier.edf.fr/services/rest/referentiel/searchTempoStore?dateRelevant=2023-08-01>
give the response : {"couleurJourJ":"TEMPO_BLEU","couleurJourJ1":"TEMPO_BLEU »}

the second : https://particulier.edf.fr/services/rest/referentiel/getNbTempoDays 10 <https://particulier.edf.fr/services/rest/referentiel/getNbTempoDays>
give the response : {"PARAM_NB_J_BLANC":31,"PARAM_NB_J_ROUGE":18,"PARAM_NB_J_BLEU":185}

i’m trying this global script :

loadurl "https://particulier.edf.fr/services/rest/referentiel/getNbTempoDays" timeout 5 callback handler "gotTempoResult" with logging debug data

on gotTempoResult(theResult, theData, theTime)
	write log "the request took: " & theTime & " milliseconds to complete"
	if theResult is -1 then
		write log "there was a timeout trying to connect to my server" color red
	else if theResult is 200 then
		write log "my server replied with " & theData color green
	else
		write log "there was an error returned from the server: " & theResult color red
	end if
end gotTempoResult


and receive always a time out 
can you help me ?

Thank's 

Eric

below the log :

8 Jan 2023 14:23:33  loadurl debug: MBS Xojo Plugins 22.4 with CURL 7.85.0 on macOS.
8 Jan 2023 14:23:33  loadurl debug:   Trying 23.72.196.149:443...
8 Jan 2023 14:23:33  loadurl debug: Connected to particulier.edf.fr (23.72.196.149) port 443 (#0)
8 Jan 2023 14:23:33  loadurl debug: ALPN: offers http/1.1
8 Jan 2023 14:23:33  loadurl debug: 
8 Jan 2023 14:23:33  loadurl debug: TLSv1.3 (OUT), TLS handshake, Client hello (1):
8 Jan 2023 14:23:33  loadurl debug: 
8 Jan 2023 14:23:33  loadurl debug: 
8 Jan 2023 14:23:33  loadurl debug: TLSv1.3 (IN), TLS handshake, Server hello (2):
8 Jan 2023 14:23:33  loadurl debug: 
8 Jan 2023 14:23:33  loadurl debug: 
8 Jan 2023 14:23:33  loadurl debug: 
8 Jan 2023 14:23:33  loadurl debug: 
8 Jan 2023 14:23:33  loadurl debug: TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8):
8 Jan 2023 14:23:33  loadurl debug: 
8 Jan 2023 14:23:33  loadurl debug: 
8 Jan 2023 14:23:33  loadurl debug: 
8 Jan 2023 14:23:33  loadurl debug: TLSv1.3 (IN), TLS handshake, Certificate (11):
8 Jan 2023 14:23:33  loadurl debug: 

8 Jan 2023 14:23:33  loadurl debug: 
8 Jan 2023 14:23:33  loadurl debug: 
8 Jan 2023 14:23:33  loadurl debug: TLSv1.3 (IN), TLS handshake, CERT verify (15):
8 Jan 2023 14:23:33  loadurl debug: 
8 Jan 2023 14:23:33  loadurl debug: 
8 Jan 2023 14:23:33  loadurl debug: 
8 Jan 2023 14:23:33  loadurl debug: TLSv1.3 (IN), TLS handshake, Finished (20):
8 Jan 2023 14:23:33  loadurl debug: 
8 Jan 2023 14:23:33  loadurl debug: 
8 Jan 2023 14:23:33  loadurl debug: TLSv1.3 (OUT), TLS change cipher, Change cipher spec (1):
8 Jan 2023 14:23:33  loadurl debug: 
8 Jan 2023 14:23:33  loadurl debug: 
8 Jan 2023 14:23:33  loadurl debug: 
8 Jan 2023 14:23:33  loadurl debug: TLSv1.3 (OUT), TLS handshake, Finished (20):
8 Jan 2023 14:23:33  loadurl debug: 
8 Jan 2023 14:23:33  loadurl debug: SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384
8 Jan 2023 14:23:33  loadurl debug: ALPN: server accepted http/1.1
8 Jan 2023 14:23:33  loadurl debug: Server certificate:
8 Jan 2023 14:23:33  loadurl debug:  subject: jurisdictionC=FR; jurisdictionST=PARIS; jurisdictionL=PARIS; businessCategory=Private Organization; serialNumber=552 081 317 R.C.S. Paris; C=FR; ST=Paris; L=PARIS; O=ELECTRICITE DE FRANCE; CN=particulier.edf.fr
8 Jan 2023 14:23:33  loadurl debug:  start date: Jan 17 16:41:02 2022 GMT
8 Jan 2023 14:23:33  loadurl debug:  expire date: Jan 17 16:50:00 2023 GMT
8 Jan 2023 14:23:33  loadurl debug:  issuer: C=NL; O=QuoVadis Trustlink B.V.; CN=QuoVadis Europe EV SSL CA G1
8 Jan 2023 14:23:33  loadurl debug:  SSL certificate verify result: self signed certificate in certificate chain (19), continuing anyway.
8 Jan 2023 14:23:33  loadurl debug: 
8 Jan 2023 14:23:33  loadurl debug: 
8 Jan 2023 14:23:33  loadurl debug: GET /services/rest/referentiel/getNbTempoDays HTTP/1.1
8 Jan 2023 14:23:33  Host: particulier.edf.fr
8 Jan 2023 14:23:33  Accept: */*
8 Jan 2023 14:23:33  loadurl debug: 
8 Jan 2023 14:23:33  loadurl debug: 
8 Jan 2023 14:23:33  loadurl debug: TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
8 Jan 2023 14:23:33  loadurl debug: 
8 Jan 2023 14:23:33  loadurl debug: 
8 Jan 2023 14:23:33  loadurl debug: 
8 Jan 2023 14:23:33  loadurl debug: TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
8 Jan 2023 14:23:33  loadurl debug: 
8 Jan 2023 14:23:33  loadurl debug: old SSL session ID is stale, removing
8 Jan 2023 14:23:38  loadurl debug: Operation timed out after 5062 milliseconds with 0 bytes received
8 Jan 2023 14:23:38  loadurl debug: Closing connection 0
8 Jan 2023 14:23:38  loadurl debug: 
8 Jan 2023 14:23:38  loadurl debug: 
8 Jan 2023 14:23:38  loadurl debug: TLSv1.3 (OUT), TLS alert, close notify (256):
8 Jan 2023 14:23:38  loadurl debug: 
8 Jan 2023 14:23:38  the request took: 5064 milliseconds to complete
8 Jan 2023 14:23:38  there was an error returned from the server: 28


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.machomeautomation.com/pipermail/xtensionlist/attachments/20230108/75318b48/attachment.html>


More information about the XTensionList mailing list