You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
first, we do a POST request for a webhook subscription at them
in the meantime they reply with GET to our webhook url and expect to receive 200
finally, if they get 200, they confirm the webhook registration to our POST request
Later they normally send data through POST. Handling of these "normal" POST data can be easiliy implemented using this package.
But how to process it dependent on the GET/POST method? With the first GET we have a different way of validation, as well we need to send different response.
So the question is how to handle GET and POST requests to the same url in different ways?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Strava has a very peculiar way of registering the webhook url at them (https://developers.strava.com/docs/webhooks/):
Later they normally send data through POST. Handling of these "normal" POST data can be easiliy implemented using this package.
But how to process it dependent on the GET/POST method? With the first GET we have a different way of validation, as well we need to send different response.
So the question is how to handle GET and POST requests to the same url in different ways?
Beta Was this translation helpful? Give feedback.
All reactions