braindamageinc / sublimehttprequester Goto Github PK
View Code? Open in Web Editor NEWHTTP client plugin for Sublime Text 2 & 3
HTTP client plugin for Sublime Text 2 & 3
In 'http response', F5 should attempt to resend request
i just installed it today and it does not work with
reloading plugin Http Requester.http_requester
Traceback (most recent call last):
File "C:\Program Files\Sublime Text 3\sublime_plugin.py", line 72, in reload_plugin
m = importlib.import_module(modulename)
File "X/importlib/__init__.py", line 88, in import_module
File "<frozen importlib._bootstrap>", line 1577, in _gcd_import
File "<frozen importlib._bootstrap>", line 1558, in _find_and_load
File "<frozen importlib._bootstrap>", line 1525, in _find_and_load_unlocked
...AppData\Roaming\Sublime Text 3\Installed Packages\Http Requester.sublime-package\http_requester.py", line 83
print "Requesting...."
SyntaxError: invalid syntax
Is there anyway to provide an input for basic authentication?
How do we work around this?
When using Sublime's builtin incremental search, the same keybinding is used for toggling reggex patterns in the search field(Super+Alt+R)
I've just add this key bindings to my User keybindings file to take effect again, but could be possible not to overlap the keybindings came by default with ST? Thanks in advance.
When I pass the additional basic authentication header, I constantly have to encode the user and password fields in the base64 string. It would be nice to specify just the user and the password through a space and the plugin itself encoded into the correct string eg
GET http://somedomen.com/path
Authorization: Basic user pass
POST http://localhost:8080/imports
Content-type: application/json
POST_BODY:
{"citizens": [{"citizen_id": 1,"town": "Москва","street": "Льва Толстого","building": "16к7стр5","apartment": 7,"name": "Иванов Иван Иванович","birth_date": "26.12.1986","gender": "male","relatives": [2]}, {"citizen_id": 2,"town": "Москва","street": "Льва Толстого","building": "16к7стр5","apartment": 7,"name": "Иванов Сергей Иванович","birth_date": "17.04.1997","gender": "male","relatives": [1]}, {"citizen_id": 3,"town": "Керчь","street": "Иосифа Бродского","building": "2","apartment": 11,"name": "Романова Мария Леонидовна","birth_date": "23.11.1986","gender": "female","relatives": []} ]}
Console output:
Requesting....
POST http:// HOST localhost PORT 8080 PAGE: /imports
REQ HEADERS Content-type : application/json
REQ HEADERS Accept : */*
REQ HEADERS User-Agent : curl/7.21.0 (i486-pc-linux-gnu) libcurl/7.21.0 OpenSSL/0.9.8o zlib/1.2.3.4 libidn/1.15 libssh2/1.2.6
REQ HEADERS Content-lenght : 595
Exception in thread Thread-73:
Traceback (most recent call last):
File "./python3.3/threading.py", line 901, in _bootstrap_inner
File "/root/.config/sublime-text-3/Installed Packages/Http Requester.sublime-package/http_requester.py", line 132, in run
conn.request(requestType, request_page, requestPOSTBody, headers)
File "./python3.3/http/client.py", line 1065, in request
File "./python3.3/http/client.py", line 1102, in _send_request
UnicodeEncodeError: 'latin-1' codec can't encode characters in position 40-45: ordinal not in range(256)
Traceback (most recent call last):
File "/root/.config/sublime-text-3/Installed Packages/Http Requester.sublime-package/http_requester.py", line 72, in <lambda>
File "/root/.config/sublime-text-3/Installed Packages/Http Requester.sublime-package/http_requester.py", line 20, in monitorDownloadThread
File "/root/.config/sublime-text-3/Installed Packages/Http Requester.sublime-package/http_requester.py", line 368, in showResultToPresenter
AttributeError: 'HttpRequester' object has no attribute 'respText'
Ignore lines starting with a hash/pound (#).
I write comments to my request snippets but I often accidently select them with the request making the request invalid. A way to make the parser ignore some lines would be neat.
Please add parameter to control time for waiting for response before message "Error connecting: timed out" appears
Any plans to add Sublime Text 3 support please?
I wonder if we could have syntax highlighting for the HTTP response. One option would be to add an individual file extension (current is .html) and then configure the application to remember the associated color scheme.
On the other hand DetectSyntax allows to configure syntax schemes for files without extension. You can modify the DetectSyntax.sublime-settings
file to do this.
Also it would be nice if a JSON response would be formatted human readable.
POST http://localhost:3000/api/point
Content-type: application/json
POST_BODY:
{ "emails": ["[email protected]", "[email protected]", "[email protected]"], "message": "string" }
I am trying to make a GET request to an internal api like so:
GET http://test:test@localhost:8091/settings/viewUpdateDaemon/
Content-Type: application/json
but having the username:password in the url causes this error:
Traceback (most recent call last):
File "./http_requester.py", line 68, in
File "./http_requester.py", line 19, in monitorDownloadThread
File "./http_requester.py", line 346, in showResultToPresenter
AttributeError: 'HttpRequester' object has no attribute 'respText'
Exception in thread Thread-1350:
Traceback (most recent call last):
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/threading.py", line 532, in __bootstrap_inner
self.run()
File "./http_requester.py", line 87, in run
File "./http_requester.py", line 199, in extractRequestParams
ValueError: invalid literal for int() with base 10: 'test@localhost'
Traceback (most recent call last):
File "./http_requester.py", line 68, in
File "./http_requester.py", line 19, in monitorDownloadThread
File "./http_requester.py", line 346, in showResultToPresenter
AttributeError: 'HttpRequester' object has no attribute 'respText'
This url/endpoint works in other REST clients including chrome.
Use import http.client instead import httplib for python3
Hi,
Only the proxy URL can be configured in this plugin. Is it possible also to provide a username and password to authenticate against the proxy?
Thanks
Some web services that I usually test require SSL client certificates. I do use SublimeHttpRequester often to test web services. However, for those requiering client sertificates, I can't use it. Support for that would be awesome!
for example:
lw/q/lkdd ->
lw/q/lňkd -
lw/q/l""
lw/q/lĐ
I can't request a https URL. Console shows:
'module' object has no attribute 'HTTPSConnection'
Love this package - I however have a request: Could we possible get timing information also, perhaps below the header? Perhaps take a look at the "Network" tab in for instance Google Chrome developer toolbar, and add some of the same information in the Requester output window.
I was curious if it's possible to do multiline query strings somehow. this would be a great tool for SPARQL queries.
For example:
http://data.oceandrilling.org:8890/sparql?query=SELECT DISTINCT ?s FROM <http://data.oceandrilling.org/codices#> WHERE { ?s <http://data.oceandrilling.org/core/1/site> "1275" . ?s <http://data.oceandrilling.org/core/1/hole> "A" . }
one 1 line works. But
http://data.oceandrilling.org:8890/sparql?query= SELECT DISTINCT ?s FROM <http://data.oceandrilling.org/codices#> WHERE { ?s <http://data.oceandrilling.org/core/1/site> "1275" . ?s <http://data.oceandrilling.org/core/1/hole> "A" . }
or
POST http://data.oceandrilling.org:8890/sparql Accept: application/sparql-results+json POST_BODY: query=SELECT DISTINCT ?s FROM <http://data.oceandrilling.org/codices#> WHERE { ?s <http://data.oceandrilling.org/core/1/site> "1275" . ?s <http://data.oceandrilling.org/core/1/hole> "A" . }
will not. I've tried quotes etc..
anyway to allow multi-line queries to be sent to the server?
I noticed that when I try to make an OPTIONS
request, it shows up on the server as a GET
request instead. Would you mind adding support for it?
I'd like to be able to make a request without having to make a selection first. If there is no selection it would be great if the entire contents of the currently open file was used instead.
Is there a reason that a selection must first be made?
when i use online domain,
everything is ok.
when i test on virtual domain (in my hosts[vm])
sth is wrong ,
anyone fix it ?
Multiple REST calls at once, for example:
DELETE http://localhost:15672/api/queues/testing/394055ac3a814a6dba03c29335d3754d
GET http://localhost:15672/api/queues/testing
Getting:
HTTP/1.1 204 No Content
Date: Mon, 08 Dec 2014 23:22:07 GMT
Content-Type: application/json
Content-Length: 0
Server: MochiWeb/1.1 WebMachine/1.10.0 (never breaks eye contact)
HTTP/1.1 204 No Content
Date: Mon, 08 Dec 2014 23:22:07 GMT
Content-Type: application/json
Content-Length: 0
Server: MochiWeb/1.1 WebMachine/1.10.0 (never breaks eye contact)
[{.............}]
Please add proxy support to plugin.
I do not know about python a lot, from what I've read it would be a bit tricky task with httplib but still...
It would be nice to see some sort of visual feeback for long-running requests. Helpful for slow networks or realy huge responses. May be some sort of running equal signs in status bar, like for Package Installer plugin. Or, something like
1234/565434 bytes received
message
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.