Search found 46 matches

by ruslanx
Thu Jul 13, 2023 3:55 pm
Forum: Coding Questions
Topic: Need help with array of objects !
Replies: 7
Views: 361

Re: Need help with array of objects !

#JSON = 1 Global WorkPath$ = GetPathPart(ProgramFilename()) Global JobsFile$ = WorkPath$ + "jobs.json" Structure JobData published.s category.s url.s skills.s EndStructure NewList Jobs.JobData() If LoadJSON(#JSON,JobsFile$) ExtractJSONList(JSONValue(#JSON), Jobs()) ForEach Jobs() Debug Jo...
by ruslanx
Thu Jul 13, 2023 3:35 pm
Forum: Coding Questions
Topic: Need help with array of objects !
Replies: 7
Views: 361

Re: Need help with array of objects !

there is an object here is array of objects
by ruslanx
Thu Jul 13, 2023 3:32 pm
Forum: Coding Questions
Topic: Need help with array of objects !
Replies: 7
Views: 361

Re: Need help with array of objects !

#JSON = 1 Global WorkPath$ = GetPathPart(ProgramFilename()) Global JobsFile$ = WorkPath$ + "jobs.json" Structure JobData published.s category.s url.s skills.s EndStructure Global NewList J.JobData() LoadJSON(#JSON, JobsFile$) ExtractJSONStructure(JSONValue(#JSON), @J, JobData) ; what next ?
by ruslanx
Thu Jul 13, 2023 3:20 pm
Forum: Coding Questions
Topic: Need help with array of objects !
Replies: 7
Views: 361

Re: Need help with array of objects !

after node js javascript I can't understand how to .. please give me example
by ruslanx
Thu Jul 13, 2023 3:12 pm
Forum: Coding Questions
Topic: Need help with array of objects !
Replies: 7
Views: 361

Need help with array of objects !

I have file job.json: [ { "published": "", "category": "", "url": "", "skills": "" }, { "published": "", "category": "", "url": "", "skills": "&q...
by ruslanx
Tue Feb 21, 2023 10:11 am
Forum: Applications - Feedback and Discussion
Topic: [Module] Chart - Gadget
Replies: 100
Views: 41344

Re: [Module] Chart - Gadget

Caronte3D can you suggest better? Thank you! Realtime? I don't think this is possible (and intended) with this module... Hi, perhaps, but some flickering persists... here is how I did it: https://i.ibb.co/VNStwrD/Untitled2.png CompilerIf #PB_Compiler_IsMainFile Enumeration #Window #Chart EndEnumera...
by ruslanx
Mon Feb 20, 2023 2:48 pm
Forum: Applications - Feedback and Discussion
Topic: [Module] Chart - Gadget
Replies: 100
Views: 41344

Re: [Module] Chart - Gadget

How can I use line-chart for as live chart ... realtime data insert ... I need multiline chart ... ??
by ruslanx
Sun Feb 12, 2023 10:03 pm
Forum: Coding Questions
Topic: HTTPS - GET HEAD request with proxy like "ip:port:user:pass" ?
Replies: 12
Views: 992

Re: HTTPS - GET HEAD request with proxy like "ip:port:user:pass" ?

import socket HOST = "127.0.0.1" PORT = 65431 with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s: s.bind((HOST, PORT)) s.listen() while True: conn, addr = s.accept() with conn: print(f"connected by {addr}") data = conn.recv(1024) print(data.decode()) conn.send(data) con...
by ruslanx
Sun Feb 12, 2023 6:46 pm
Forum: Coding Questions
Topic: HTTPS - GET HEAD request with proxy like "ip:port:user:pass" ?
Replies: 12
Views: 992

Re: HTTPS - GET HEAD request with proxy like "ip:port:user:pass" ?

Thank you infratec , I get it working... IncludeFile "LibCurl.pbi" Procedure.s URLGetData(URL$) Protected Curl.i, *CurlSList, Response$, ret.l, total_time.d, connect.d Curl = curl_easy_init() If Curl *CurlSList = curl_slist_append(#Null, "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win6...
by ruslanx
Sun Feb 12, 2023 3:18 pm
Forum: Coding Questions
Topic: HTTPS - GET HEAD request with proxy like "ip:port:user:pass" ?
Replies: 12
Views: 992

Re: HTTPS - GET HEAD request with proxy like "ip:port:user:pass" ?

Since I have no proxy with user and password, I can not provide a working example Usage see here: https://curl.se/libcurl/c/CURLOPT_PROXYUSERPWD.html hi infratec , I saw your code with winapi : https://www.purebasic.fr/english/viewtopic.php?p=441105#p441105 can this code be modified for proxy: &quo...
by ruslanx
Sun Feb 12, 2023 2:32 pm
Forum: Coding Questions
Topic: HTTPS - GET HEAD request with proxy like "ip:port:user:pass" ?
Replies: 12
Views: 992

Re: HTTPS - GET HEAD request with proxy like "ip:port:user:pass" ?

I need with timeout ? ReceiveHTTPMemory has not timeout option ..
by ruslanx
Sun Feb 12, 2023 2:21 pm
Forum: Coding Questions
Topic: HTTPS - GET HEAD request with proxy like "ip:port:user:pass" ?
Replies: 12
Views: 992

HTTPS - GET HEAD request with proxy like "ip:port:user:pass" ?

Hi, I need to make request HTTPS - GET or HEAD .. to test my server or ping ... but only through proxy with authentication .. can someone help with code .. winApi or else ? thank you.
by ruslanx
Thu Dec 15, 2022 11:36 pm
Forum: Coding Questions
Topic: Parse JSON object with array HELP!
Replies: 1
Views: 244

Parse JSON object with array HELP!

Hi, need help !? how I can parse in structure and load-save from-to file example "client,json" { "proxy": "", "priority": "Z", "books": [{ "type": "text", "id": "text", "label": "text&q...