Joe Sansalone
Members-
Content Count
103 -
Joined
-
Last visited
Community Reputation
6 NeutralRecent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
-
Thanks Dave! Works for me.
-
Hi, I'm running Delphi 12.1 connected to macOS 14.5 with Xcode 15.4. SDK iOS 17.5 I tried a simple app - compiling with Simulator ... launches simulator, app starts but never gets to form screen. I don't need a certificate for Simulator, right? Anybody get Simulator to work? Same simple app ... couldn't get it to run on my iPhone (17.5). (although I think I need to download a developer certificate and provisioning profile .. I thought it would keep from previous Xcode). Joe
-
Anything in real production I purchase a license. But I'd like to play around with new Change Views - got me thinking I should setup something with latest IB version.
-
Like a regular batch file? Does your client application automatically re-connect? Or do you also restart your client app too?
-
Does it mean that existing connections continue to work after 48 hours?
-
Hi, I know that Interbase works on the same machine with my Delphi IDE, for development purposes. Do I need a separate dev license to try Interbase on a machine without the Delphi IDE? If so, do I already have it because I purchased Delphi OR do I need to request it? Joe
-
Thanks. I have 11.3 and soon to start using 12.1. (any reason why these changes are NOT yet implemented in recent versions?) I'll check out the code changes by Chris Pim - thanks!
-
Hi, Has anyone used in-app for subscriptions? A client needs me to have the app free for a couple of weeks and then prompt to purchase subscription (in-app). Is this doable with TInAppPurchase? if so, any examples out there? Joe
-
installed Interbase2020 Update 5 but always starts 4
Joe Sansalone replied to Joe Sansalone's topic in Databases
gds_db (port 3050) developer_ib2020 (port 3054) I stopped the services so that none are running. I think IbMgr.exe probably is calling the wrong ib_guard.exe or something. I'll probably remove Update 4 files so that there's only Update 5 Interbase. -
installed Interbase2020 Update 5 but always starts 4
Joe Sansalone replied to Joe Sansalone's topic in Databases
using as a server -
Hi, I have Delphi 11.3 and Delphi 12.1 on the same machine. Interbase2020 Update 4 was there before 12.1. Now there is Update 5 as well. But even though I change the shortcut to point to IBMgr.exe gds_db in the Delphi 12.1 directory, the server running shows the old Update 4. I made changes to the registry ... I don't know why update 4 is running?? If I check the location of the running IBServer.exe in task manager it always shows 22.0 folder (Delphi 11.3).
-
Multipart/form-data vs x-www-form-urlencoded (Indy HTTP server)
Joe Sansalone replied to Joe Sansalone's topic in Network, Cloud and Web
Thank you for the code. I realize that I was doing a quick "custom" version just for text and utf8. (and boundary was the same string always coming from SendGrid). It was my attempt to get something working (my application simply needed some Form-data fields coming in). We are lucky to have you in this forum! I'll try out your code. Thanks. -
Multipart/form-data vs x-www-form-urlencoded (Indy HTTP server)
Joe Sansalone replied to Joe Sansalone's topic in Network, Cloud and Web
I'm simply doing a aRequestInfo.PostStream.Position := 0; StringList.LoadFromStream(aRequestInfo.POstStream, TEncoding.UTF8); to get the content into a string list. Then, I'll be looping through each line of the stringlist looking for Content-Disposition: form-data; name="xxx" and getting the NAME of the parameter (i.e. xxx). Then skipping a line and taking every line until --XYzZY, to get the VALUE of the name parameter. I think it will work for anything without attachments. -
Multipart/form-data vs x-www-form-urlencoded (Indy HTTP server)
Joe Sansalone posted a topic in Network, Cloud and Web
Hi, I have a Indy HTTP server application. Currently receiving requests in the format: application/x-www-form-urlencoded. (everything works fine, I use the parsed params). I'm now also receiving Posts from SendGrid: "the post will be multipart/form-data with the email content URL encoded, but the attachments will be in multipart/form-data". Using the TIdHTTPRequestInfo.PostStream, I'm able to view the payload that they are sending me. 1. Do I need to URLDecode the email content or is it already decoded? 2. Are there any functions/classes to help parse the form-data? it looks like this: --XYzZY Content-Disposition: form-data; name="from" Joe S. <joes1234@gmail.com> --XYzZY Content-Disposition: form-data; name="text" Hello, I'm testing this email. Joe --XYzZY Content-Disposition: form-data; name="to" mb12345@parsetest.projectone.ca --XYzZY Content-Disposition: form-data; name="subject" Subject123 -
trying to POST multiple values of same parameter
Joe Sansalone replied to Joe Sansalone's topic in Cross-platform
OK, I got it to work via: tempBody := 'Param1=' + value1 + '&' + 'Param2=' + value2 + '&' ... etc; // build the parameters with & in-between each parameter RestRequest.Params.AddItem('Body1234', tempBody, pkREQUESTBODY, [poDoNotEncode]); // notice that there needs to be a unique name even for the entire body of parameters.