This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Send Lat/Long to web page
#1
Hi All

Just working my head around Node Red.

I am trying to setup a "simple" Tongue  flow that sends the latitude and longitude to a website. I have the following flow

  1. Yellow subscribe input sending lat/long via navigation.position (which after testing with debug shows lat/long)
  2. Http Request with method set as POST and to the webpage
  3. Debug message
The following is being returned - it looks like the payload being sent is empty? I'm just dumping the $_POST data back to the page. Do I need to add something else?

object
payload: string
array(0) {
}
_msgid: "5d2c0c3a9e7dc8f3"
statusCode: 200
headers: object
responseUrl: "https://www.sailadventure.co.uk/automations/posit/"
redirectList: array[2]
retry: 0
responseCookies: object
Reply
#2
I seem to have fixed my issue - I was not setting the headers to be sending form data!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)