http GET

Thad Bogert thad at technosolver.com
Thu Feb 17 20:14:36 UTC 2022


Hi Ruedi,

Not sure if you found a solution yet, but one approach that we have used is to utilize CURL from Omnis.  The benefit to this is that it overcomes limitations of older versions of Omnis in regards to web connectivity.  The following is an example is from an older list post from Andrew McVeigh.

Begin text block
	Text: set themessage to "\"username=[SPSMSUSER]&callerid=[SPSMSFROM]&pwd=[SPSMSPASSWORD]&destination=[mobile]&msg_content=[message] \"" & " http://8centsms.scoast.net.au/realpro.php <http://8centsms.scoast.net.au/realpro.php>" (Carriage return)
	Text: do shell script "curl -d " &  themessage (Carriage return)

End text block
Get text block script
Copy to clipboard script
Do $runapplescript(script,result)



> On Feb 11, 2022, at 1:50 PM, Rudolf Gautschi via omnisdev-en <omnisdev-en at lists.omnis-dev.com> wrote:
> 
> Dear all,
> 
> I'm having problems with „httpGET“ and Omnis-Studio 4.2 and/or Omnis-Studio 8.172.
> 
> I use both Omnis on a Mac. The Server is in my local Network.
> I tried to connect that server and want to „GET“ Data from this server, but receive only „ERROR 400“ all the time.
> 
> Maybe i do not understand, how to build the GET Command exactly.
> 
> When i open the Terminalprogramm an enter the following string, i get return the list of „participants“
> 
> curl -kvL --resolve --location --request GET "https://192.168.0.136:8100/md/ela/participants <https://192.168.0.136:8100/md/ela/participants>" --header "X-CLIENT-ID: 1000009999“ --header "Content-Type: multipart/form-data" --header "Authorization: Basic 1234567890abcdefghijk“
> 
> How do i define this String in an GET in Omnis?
> Any helpfull ideas and/or Omnis-Examples available?
> Thanks a lot
> Ruedi
> _____________________________________________________________
> Manage your list subscriptions at https://lists.omnis-dev.com
> Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com 



More information about the omnisdev-en mailing list