Question on sending html strings to an address

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
pfischer
Junior Coder
Posts: 21
Joined: Wed Jul 23, 2014 2:07 pm

Question on sending html strings to an address

Post by pfischer » Mon Aug 29, 2022 10:20 am

Dear all,
I have a simple problem but do not find a solution.
To switch an IP relais on (or off) I have to send the following command to the ip switch.
172.30.2.20/io.cgi?DOA2=0 (to switch it on)
resp.
172.30.2.20/io.cgi?DOA2=1 (to switch it off)

When I paste this lines ion my browser it all works fine.

However, I do not manage to put this in a command for MS.

I tried all variations of:
HTTPRequest>172.30.2.20,,PUT,/io.cgi?DOI1=0,HTMLResponse
HTTPRequest>http://172.30.2.20,,PUT,/io.cgi?DOI1=0,HTMLResponse
HTTPRequest>https://172.30.2.20,,PUT,/io.cgi?DOI1=0,HTMLResponse

but nothing works. I am sure it is an obvious fault :-).
Thanks for a tip:-)
Philipp

pfischer
Junior Coder
Posts: 21
Joined: Wed Jul 23, 2014 2:07 pm

Re: Question on sending html strings to an address

Post by pfischer » Mon Aug 29, 2022 10:27 am

I forgot to say that the HTML Response is "Unknown protocol".

User avatar
Dorian (MJT support)
Automation Wizard
Posts: 1348
Joined: Sun Nov 03, 2002 3:19 am
Contact:

Re: Question on sending html strings to an address

Post by Dorian (MJT support) » Tue Aug 30, 2022 8:40 am

I'd try this :

Code: Select all

HTTPRequest>http://172.30.2.20/io.cgi?DOI1=0,,GET,,HTMLResponse
Yes, we have a Custom Scripting Service. Message me or go here

pfischer
Junior Coder
Posts: 21
Joined: Wed Jul 23, 2014 2:07 pm

Re: Question on sending html strings to an address

Post by pfischer » Tue Aug 30, 2022 9:30 am

Thanks a lot Dorian, this worked. Didnt get the GET command.

Post Reply
cron
Sign up to our newsletter for free automation tips, tricks & discounts