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
The problem is not with the encoding, but rather with the usage of the form method.
Notice that the bottom request doesn't have form parameters and a body - http://requestb.in/1emxna81?inspect. This is the result from using the form method:
request.post('http://requestb.in/1emxna81').form({'key A to B':'value'})
I'll investigate that further, in the meantime you can just pass the parameters through the form option:
request.post('http://requestb.in/1emxna81',{form:{'key A to B':'value'}})
simov
changed the title
URL-encoded forms do not encode the form data correctly (spaces)
Bug when using the form method with application/x-www-form-urlencoded
Jun 5, 2015
@LucasSeveryn I just pushed the fix here #1656 can you pull it and check if it works for you?
simov
changed the title
Bug when using the form method with application/x-www-form-urlencoded
Bug when setting up the body via the form method
Jun 23, 2015
Example:
will not encode the spaces correctly and therefore the response will not be successful.
The text was updated successfully, but these errors were encountered: