Closed fatcatt013 closed 1 year ago
The Hubot http client isn't coded to follow redirects. You'd have to code that in this script yourself.
fetch
automatically follows redirects. Try this and let me know. https://developer.mozilla.org/en-US/docs/Web/API/Fetch
I am trying to make a post request which has a correct response status code of 303. How does hubot react to this? It should redirect me to .../index.php page and return a response to GET request with status code of 200, which it seems to be doing.
The problem is that the data entered somehow dont get passed to the page. Am I entering them right?
For reference, here is the curl command I am trying to duplicate.