Git Product home page Git Product logo

sublimehttprequester's People

Contributors

braindamageinc avatar bryant1410 avatar roblibob avatar sefus avatar shanefulmer avatar wynout avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

sublimehttprequester's Issues

Suggestion

In 'http response', F5 should attempt to resend request

does not work anymore

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

Mac OS Keybinding is overlapping toggle_regex function

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.

Basic authentication

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

Not send request

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'

Comment (Enhancement)

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.

SublimeText syntax highlighting for HTTP response

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.

URL username password causes ValueError

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.

python3

Use import http.client instead import httplib for python3

Proxy authentication

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

Support for SSL client certificates

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!

Request: Get timing information below header information

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.

Multi-line query strings

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?

OPTIONS request support?

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?

Request without selection

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?

cannot use localhost domain

when i use online domain,
everything is ok.

when i test on virtual domain (in my hosts[vm])
sth is wrong ,

anyone fix it ?

Request:

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)

[{.............}]

Proxy support for requester

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...

Visual feedback for time consuming requests

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.