huachao / vscode-restclient Goto Github PK
View Code? Open in Web Editor NEWREST Client Extension for Visual Studio Code
Home Page: https://marketplace.visualstudio.com/items?itemName=humao.rest-client
License: MIT License
REST Client Extension for Visual Studio Code
Home Page: https://marketplace.visualstudio.com/items?itemName=humao.rest-client
License: MIT License
Steps to Reproduce:
Given the fact that I can't find any discussions or related code in this project I'm assuming the REST Client currently does not support HTTP proxies.
Steps to Reproduce:
when you access the unicode website, for example: www.google.co.jp you will get messy code in the response view. I guess it's caused by charset setting.
Comments are integrated in the request.
Proposition : Replace the comment with a blank line. BUT in a JSON form, blank line will generate a malformed JSON.
Some rest api requires client cert authentication.
Steps to Reproduce:
POST http://myserver/ws/myapi/v1 HTTP/1.1
Content-Type:application/json
Accept:application/json
Company-Bu-Code:010
TEST:010
{
"messasge": "0000010001"
}
Problem, the specifics headers are send in lower case:
Company-Bu-Code => company-bu-code
TEST => test
Steps to Reproduce:
GET http://wwww.bing.com HTTP/1.1
Ctrl
-Alt
-R
I get the error above. I was working find just a few minutes ago so not sure what could be the case.
R.
Steps to Reproduce:
Please support send file with relative path instead of absolute path.
https://github.com/Huachao/vscode-restclient/blob/master/src/httpRequestParser.ts - line 85
POST https://example.com/comments HTTP/1.1
content-type: application/xml
authorization: token xxx
< ./demo.htt
Extension causes this issue:
microsoft/vscode#12709
Currently we are putting result data to console log, which is poorly structured and has no colorization. Consider converting the result to HTML and preview it in another pane, make sense?
Steps to Reproduce:
Hello,
I really love your extension, however, since the latest windows 10 big update (anniversary), it does not work anymore
I tried reinstalling the extension, without any more success.
Is there a way to get logs for you?
Thanks for your help
Enhancement
It could be great to format the answer which have the content-type: application/xml.
foobar
==>
foobar
Steps to Reproduce:
It appears that running the curl command does not process the -u parameters correctly. You can reproduce this if you sign up for a twilio account and call:
curl "https://lookups.twilio.com/v1/PhoneNumbers/+19999999999?CountryCode=US&Type=carrier" -u 'account-SID:account-token'
Response is
HTTP/1.1 401 UNAUTHORIZED 317ms
access-control-allow-credentials: true
access-control-allow-headers: Accept, Authorization, Content-Type, If-Match, If-Modified-Since, If-None-Match, If-Unmodified-Since
access-control-allow-methods: GET, POST, DELETE, OPTIONS
access-control-allow-origin: *
access-control-expose-headers: ETag
content-type: application/json
date: Sun, 31 Jul 2016 02:54:20 GMT
twilio-request-duration: 0.002
twilio-request-id: RQb1fa69f4011d45f1bd552952a270a886
www-authenticate: Basic realm="Twilio API"
x-powered-by: AT-5000
x-shenanigans: none
content-length: 205
connection: Close
{
"code": 20003,
"detail": "Your AccountSid or AuthToken was incorrect.",
"message": "Authentication Error - No credentials provided",
"more_info": "https://www.twilio.com/docs/errors/20003",
"status": 401
}
As far as I can see, cookies received by previous requests are not automatically sent with subsequent requests to the same host. Woul it be possible?
Steps to Reproduce:
Error Message:
Unable to open 'Response(375ms)': Cannot read property 'trim' of undefined.
Steps to Reproduce:
Run (Ctrl+Alt+R) the following (or any other for that matter)
GET https://example.com/ HTTP/1.1
I don't know if it's better to create different issue but here is some proposition and sorry for the english :).
Enhancement :
#
at the beginning of the line as the delimiterHi,
I'll try to explain a bit. I got a file that I want to download. I use a get request to do that.
When I put the link into a browser, I can download the file.
When I put the link into "resteasy" (firefox extension for rest client), I can see the content of the text file.
When I put the link into vscode rest client, I got the response "Parse Error" displayed down.
BUT If I had, in php, an "exit()" function just after the file reader, the content if well displayed.
I don't know what cannot be parsed. May be add a raw functionality. Like display content and do not try to parse it. Or avoid parse if it can't parse?
Thanks
GET /api/v1/chat HTTP/1.1
Host: localhost:8084
Content-Type: application/x-www-form-urlencoded
Steps to Reproduce:
Alternative Steps:
Expected result: Expected it to take the Host from headers if the path is absolute.
Cool plugin for vscode, will be very handy, thanks! One issue I've seen is this:
Not sure if this is an issue with the extension or with VSCode itself... but I am unable to copy responses to the clipboard. This is very useful for copying redirect URL's in 30x http responses from the rest service that is being tested.
Also, would it be possible to have an option to automatically handle 3xx redirect message responses from the server?
It would be nice to allow the cmd-r
action to trigger the request again when on the results view. Like a replay action.
VSCode Version:
Version 1.7.2
Commit 7ba55c5860b152d999dda59393ca3ebeb1b5c85f
Date 2016-11-21T22:14:18.217Z
Shell 1.3.8
Renderer 52.0.2743.82
Node 6.5.0
OS Version:
Ubuntu 16.04
REST Client Version:
v0.11.0
I'm unable to put sample requests in my README.md file to document an API. Here is a small sample of my README.md file:
...
Get a list of all users
-----------------------
GET http://localhost:5000/api/users HTTP/1.1
Create a new user
--------------------
POST http://localhost:5000/api/users HTTP/1.1
content-type: application/json
{
"name": "Test User"
}
...
Steps to Reproduce:
Steps to Reproduce:
Is there a way to use Windows NTLM authentication via the REST client? I'm able to get the response via the python HTttpNtlmAuth library, but curious to see if the same can be achieved via the REST client.
Steps to Reproduce:
When I change the line endings to CRLF, everything works as expected
Steps to Reproduce:
Header must be in 'header name: header value' format, please also make sure there is a blank line between headers and body
;As I mention, there is a workaround — create dummy (still valid) header and execute request. But behavior is clearly incorrect and error message is misleading.
Requirements:
The goal is to be able to make flexible REST client file. Adding variables, it could be simple to do those sort of things :
Tasks:
Reception of a response may include encoded characters. Although there are other extensions that will decode html encoded characters, the response is read only. To decode requires an extra set of steps to open a new window, manually select the response (CTRL+A does not work) and past into the new window before invoking the other extension.
Can you provide an option to decode encoded characters in the response?
Thank you.
Format result based on the content type so it is easy to identify components of response.
It would be nice to have expand collapse at node level like in most XML, JSON viewers.
Steps to Reproduce:
I suggest the Proxy Excludes
option.
If some host(ex. localhost, 127.0.0.1) is in the option, request should not use proxy settings.
When the response contain element that cannot be parsed (Php error as exemple), it display the last preview or display an error message : "Unable to open '\response-preview': Unexpected token <."
It would be great to display raw data to be able to read the error.
Cheers
Steps to Reproduce:
.rest
or .http
filePotential solution:
Create an array of HTTP requests based on REST keywords (GET, POST, etc...) and execute each one after another.
Tasks:
It would be nice to have results in response window be wrapped by default. In case if you're having long result string (token, for example) it's very inconvenient to work with such data.
Not an issue, it's more a question.
Steps to reproduce:
When A request take some time (10s as exemple), we don't really know if the request has been correctly sended and if it just waiting for the answer.
I type ctrl+alt+r 5-6 time because I thought that the request wasn't send.
May be display a loading information (like an update extensions bar on top of VSC) and hide it when it's done.
I just saw that there is a small cloud into the bottom bar and the display the duration.
I don't know if it's very explicit for a loading time. May be add this information into the doc?
If one is to close (all of) the response view, it would be nice to remove the items in the status bar (timing, size, etc.). Just a bit of cleanup.
With Postman, I can find a service call in Chrome debuggers network tab, copy the call as curl, import it into Postman, and my method, url, headers and body are all setup for me. HUGE time saver, especially when my QA people need me to reproduce an issue... they just send me that captured curl script.
Be nice if I could paste the same Curl into Restclient and have it generate the RFC 2616 format.
Hi,
It would be also nice to have several output windows. Currently you cannot have two input documents that feed their output to two different output windows. You will always have only one response window, and you'll be loosing results of previous requests all the time.
What do you think about such improvement?
Steps to Reproduce:
VSCode
. Example of my settings.json
:// Place your settings in this file to overwrite the default settings
{
"editor.fontFamily": "Arial, Consolas, 'Courier New', monospace",
"editor.fontSize": 8,
"editor.wrappingColumn": 0
}
\reponse-prevew
window still uses standard font (see attached screenshot);Steps to Reproduce:
some queries to api are really lng and writing them in single line is making everything worse
it could be so nice to split parts into lines but when i do this the request wont work
Since you are using a webview i think it should be not that difficult to add a input field to write js to play with response .
it would be really great i already replaced this with postman just there are 2 issues i face so far
first is variable support it could be great if variables could be used inside the url and the second is this playing with response.
返回的结果集是XML,但会 < 和 > 会显示成 < 和 > , 能不能让返回结果集显示回 < 和 > 呢?
Steps to Reproduce:
\reponse-prevew
.Steps to Reproduce:
http://example.com.com/api/users/list?params=NC%2CN%2CVL%2CV
Expected that the result will be the same as cur/browser, but instead, it encodes the url again, resulting in the backend receiving NC%2CN%2CVL%2CV
instead of NC,N,VL,V
Same issue if encoded values are part of the path instead of just the query string.
P.s: I tried using the dev tools to find the actual request being made, but it does not appear in the network tab. Is there a way to see the actual requests (that doesnt involve sniffing with an external program)
Steps to Reproduce:
1.
2.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.