mvanrijnen
Members-
Content Count
471 -
Joined
-
Last visited
-
Days Won
1
Everything posted by mvanrijnen
-
But WHY 🙂 The whole purpose of the CE licenses is to attract developers, not scare them away ?
-
and now try this ) with this ( text as it )() fill fail (sometimes) 😉
-
Use this: System.SysUtils.TStringHelper.IndexOf - RAD Studio API Documentation (embarcadero.com) How to use the above to solve your problem is your job as a developer 😉
-
How do you get the CE version of 12 ? Delphi IDE for Native Apps: Community Edition - Embarcadero States its still 11.x ?
-
Delphi CE application accesses unknown IPs
mvanrijnen replied to everybyte's topic in Network, Cloud and Web
Ah see, little bit strange that a site as virustotal does not take this to consideration or report it with the found ip's. -
In D11.3, with search (ctrl-f and/or ctrl-shift-f), the checkbox for "Whole words only", goes randomly to checked state in my IDE. Somebody who knows why this is, and/or how to fix this ? (i want it not checked by default)
-
Delphi CE application accesses unknown IPs
mvanrijnen replied to everybyte's topic in Network, Cloud and Web
You can check this also with procmon: Process Monitor - Sysinternals | Microsoft Learn as said, i'm gonna check this now 🙂 (private laptop i have CE installed, will do the same tomorrow with the Enterprise edition). procmon does not detect any network connectivity simple console app: (and just for fun i attached the ip trace from procmon, running bds-> start project1 -> close bds) Virustotal result: Link: VirusTotal - File - 956317d6f12af53a4c97db41807e9dd51fd37c30057607cecb969fc9214ccb99 Scanning: Bkav Pro W32.AIDetectMalware RisingTrojan.Generic@AI.100 (RDML:gihstO5MCnK0eVlOewg5Rw) SecureAgeMalicious VBA32 TScope.Trojan.Delf IP Traffic When executing the file being studied, it generated the following IP traffic. 192.229.211.108:80 (TCP) 20.99.184.37:443 (TCP) program Project1; {$APPTYPE CONSOLE} {$R *.res} uses System.SysUtils; begin try try Writeln; Writeln('This is just a test'); except on E: Exception do Writeln(E.ClassName, ': ', E.Message); end; finally Writeln; Write('press enter...'); Readln; end; end. bds ip trace.txt -
Got message 'HTTP/1.1 401 Unauthorized' when tried to access user profile (https://graph.microsoft.com/v1.0/me)
mvanrijnen replied to Officeapi's topic in Network, Cloud and Web
i'm out of idea, very strange that you get a statuscode 200, visible content in the proxy but not content in the delphi object. -
Spring4D dictionary and record values
mvanrijnen replied to Tommi Prami's topic in Delphi Third-Party
litlle bit offtopic, just curious, but what would be the (big) advantage of using Spring4D for collections instead of the "Built In" generics/collections from Delphi?,. -
Got message 'HTTP/1.1 401 Unauthorized' when tried to access user profile (https://graph.microsoft.com/v1.0/me)
mvanrijnen replied to Officeapi's topic in Network, Cloud and Web
but there is clearly JSON data in the response, i really would not know where your response content is empty -
Got message 'HTTP/1.1 401 Unauthorized' when tried to access user profile (https://graph.microsoft.com/v1.0/me)
mvanrijnen replied to Officeapi's topic in Network, Cloud and Web
very strange. and in the proxy you still get json text in the response? -
Got message 'HTTP/1.1 401 Unauthorized' when tried to access user profile (https://graph.microsoft.com/v1.0/me)
mvanrijnen replied to Officeapi's topic in Network, Cloud and Web
ah ok. You can see that there is content (348 bytes) but i think i know the problem, probably your accept header is not ok. more will follow in a minute, i check something..... you have this RESTProfileRequest.Params.AddItem('Accept', '*/*', TRESTRequestParameterKind.pkHTTPHEADER); somewhere? change the '*/* in 'application/json' or better just use the constant: CONTENTTYPE_APPLICATION_JSON (is declared in the Rest.Types unit) i use: req.AddParameter('Accept', ctAPPLICATION_JSON, pkHTTPHEADER, [TRESTRequestParameterOption.poDoNotEncode]); -
could be that we had the same problem, therefore we only use the pure/clear $(Auto)
-
Just set it to auto in de Project options for the package: Lib suffix: $(Auto)
-
Yes, they should turn it around, first release the CE as a preview,, get the community to work for you, they will if you provide them a free IDE. Go more to a system as MS does, you need to have a payed license if you have $xxx in annual revenue.......
-
hmz, have to take a look at that if we upgrade to D12
-
I think they should also change the BDSCatalogRepository BDSCatalogRepositoryAllUsers paths, by default they do not have a version in it (at least untill 11.3), i always change these to something like "D:\Data\Delphi\Catalog\22" (and then the same value for BDSCatalogRepository as for BDSCatalogRepositoryAllUsers)
-
but is i read it correctly how to solve this, it's just plain old DLL hell, not so difficult to solve ....
-
Maybe the problem is that the Beta testing is done on "clean" systems only ?
-
Got message 'HTTP/1.1 401 Unauthorized' when tried to access user profile (https://graph.microsoft.com/v1.0/me)
mvanrijnen replied to Officeapi's topic in Network, Cloud and Web
Very strange, if you get a response code of 200 and you see the body in the proxy it should have a value, can you see if request.Response.Content contains any text? (debug it right after request.execute in your code) -
Got message 'HTTP/1.1 401 Unauthorized' when tried to access user profile (https://graph.microsoft.com/v1.0/me)
mvanrijnen replied to Officeapi's topic in Network, Cloud and Web
so you do get a response now, try now without the Async, i think problem might be in the Async method now. (not in the method, but how you handle it). I never used that method, i believe you have to have an event catching the response or something like that ? (can check that tomorrow, i now go to bed : ) -
When will the CE release will be released? (i have the CE version on my private laptop)
-
trying to POST multiple values of same parameter
mvanrijnen replied to Joe Sansalone's topic in Cross-platform
Don ;t think thats possible with the Params property, it all ends up merging the diffentt params from client/request etc, and there they get overwritten when having the same name. You have to fill your request body by hand then i think. -
trying to POST multiple values of same parameter
mvanrijnen replied to Joe Sansalone's topic in Cross-platform
Best way is to use a proxy, for a list see for example: mitmproxy Alternatives: Top 10 HTTP(S) & Web Debuggers | AlternativeTo ( i use mitm and/or fiddler, charles is also mentioned by @Uwe Raabe i believe) let mee see if i can capture some output for this. Here it works like a charm..... var ...... prm : TRESTRequestParameter; begin ..... req := TRESTRequest.Create(nil); try req.Client := FRestClient; req.Method := TRESTRequestMethod.rmPost; req.Resource := cExtensionResource; ..... prm := req.Params.AddItem(); prm.Name := 'testmultivalue'; prm.AddValue('Value_1'); prm.AddValue('Value_2'); prm.AddValue('Value_3'); prm.AddValue('Value_A'); req.Execute(); ..... don't mind the 400 error, i just changed a get into a post to try.