Author Topic: Sending from Magic 4 to webserver running php script using http GET?  (Read 1496 times)

rjh008

  • Newbie
  • *
  • Posts: 4
Hi, Magic 4 is working fine for sending RDS to the 164 Encoder I am using connection 1 with TCP that is connected and working. I now have a DAB encoder that needs to read the now playing from a text file on a webserver. I have a PHP script that runs on the webserver but I cant figure out how to send the same info that is going to the RDS connection1 to HTTP Push.
I have set up a Bridge connection but its not receiving / sending as far as i can tell...

Jan

  • Hero Member
  • *****
  • Posts: 1071
Re: Sending from Magic 4 to webserver running php script using http PUSH ?
« Reply #1 on: December 13, 2023, 12:33:19 pm »
I think your setup only requires a few corrections:

1)
In the External Text tool, section Output, add following line:
sendto "DAB"

Explanation: Bridges are not included automatically when you fill the *

2)
In the DAB connection properties, remove the line sendto *, as you only need to send that text to the http server

rjh008

  • Newbie
  • *
  • Posts: 4
Re: Sending from Magic 4 to webserver running php script using http GET?
« Reply #2 on: December 13, 2023, 03:34:51 pm »
Hi i have done what you said can I check that this URL is correctly formatted ? Im looking for the data to be in the variable "s"
 sendhttp url:"https://server/NowPlaying/showhrp.php?key=XXXXXXXXXXX;s=%data%"

rjh008

  • Newbie
  • *
  • Posts: 4
Re: Sending from Magic 4 to webserver running php script using http Post?
« Reply #3 on: December 13, 2023, 03:53:32 pm »
I think i see the issue - haha i have used the ; rather than the & in the post URL ! Thanks for your assistance a great product !

brainycheep

  • Newbie
  • *
  • Posts: 1
    • geometry dash lite
I think your setup only requires a few corrections:

1)
In the External Text tool, section Output, add following line:
sendto "DAB"

Explanation: Bridges are not included automatically when you fill the *

2)
In the DAB connection properties, remove the line sendto *, as you only need to send that text to the http server
I have tried and it's worked.