-
Notifications
You must be signed in to change notification settings - Fork 455
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support multiline request body for x-www-form-urlencoded #169
Comments
@fabianschlier I have implemented this feature, and will publish this in next release. |
@fabianschlier @ashee @juunas11 @ljyf5593 @noark9 @jenan-stripe you can try the latest version 0.18.3 to verify this feature. The syntax follows what @fabianschlier described: POST https://host:8443/my/path/to/endpoint HTTP/1.1
Content-Type: application/x-www-form-urlencoded
arg0=val0
&arg1=val1
&arg2=val2 |
@Huachao this works good. Thanks for adding this feature. Especially when working with big requests the files are readable much better now. |
Is there a way to assign contents of a file to one of arguments? I can't manage to do it.
|
I write like the in my request Content-Type: application/x-www-form-urlencoded I get that error HTTP/1.1 400 Bad Request { |
@fadl8 could you please show me your actual request? |
It works like this POST http://localhost:8080/auth/realms/master/protocol/openid-connect/token
Content-Type: application/x-www-form-urlencoded
client_id=portal
&username=admin
&password=password
&grant_type=password |
Does it work for you if you merge multiple lines into single one? |
Yes, it works when merge into one line. |
Hi,
thanks for this cool extension, it eases our quick testing so much! But one thing is a bit sticky.
One of our applications makes heavy use of post reqeusts with application/x-www-form-urlencoded bodies. This works pretty well, but all parameters need to be given in one line
If there are many/long parameters, this makes it pretty ugly to keep track of the parameters. It would be nice to support multi lining of the parameters. I sneaked around in the code a bit and it seems that there is already a EOL normalization here: https://github.com/Huachao/vscode-restclient/blob/master/src/controllers/codeSnippetController.ts#L205
But I did not manage to get this triggered. My Request looks like this:
Am I missing something, point me out. If not, it would be nice to support nice multi lines:
Thanks
Fabian
The text was updated successfully, but these errors were encountered: