Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    mmacedo
    @mmacedoeu
    I am trying to post json
    but typing: name:=Tatooine or name:='Tattoine' or name:="Tattoine" I get an error about "ValueError: No JSON object could be decoded"
    So how can I set JSON fields with strings ?
    mmacedo
    @mmacedoeu
    sorry, got it, just put name=Tatooine will work
    Kim
    @kimswe
    @eliangcs Hi! Awesom project, i really hope u get some cash out of it, even if its open source. I have but a small suggestion.
    Put a message when 'less' is not found, that tells the user to fix his config file. Found the solution above, and the docs does not seem to mention it.
    Kim
    @kimswe
    also running this trough the normal windows console is not working, spent an hour debugging using print statements :D then i started up a Cmder (cmder.net) console, reverted my config edit to less, and it looks like Bobs my uncle.
    Chang-Hung Liang
    @eliangcs
    @kimswe this is a great feedback! It'd be easier for us to track this if you can create an issue on github. I probably won't have time to fix this anytime soon, but someone else might. Again, thanks for the great feedback!
    Alan Sill
    @alansill
    Have been playing with fx (https://github.com/antonmedv/fx) installed via npm. Using it within http-prompt doesn't work, as in the example "get | fx", to browse json output. Any hints as to why?
    Angad Singh
    @dotangad
    Hey guys, I can't find any documentation about changing themes, I've been through the github, the website and the docs.
    It'd be great if someone could help me change my theme!
    iseehk
    @iseehk
    Hi I wanna ask how can I post with json content with new feature field=@file.json

    file.json content

    {
    "addr0": "Unit 315, 3/f PAK TIN ESTATE, BLOCK 10, Shek Kip Mei",
    "reference": "1",
    "returnRecords": 10
    }

    when I run with debug mode , the content is

    "data": "{\"field\": \"{\r\n\t\\"addr0\\": \\"Unit 315, 3/f PAK TIN ESTATE, BLOCK 10, Shek Kip Mei\\",\r\n\t\\"reference\\": \\"1\\",\r\n\t\\"returnRecords\\": 10\r\n}\"}",

    it seems that , http-prompt add redundant file in the json content "file: {}" . I really dont need it.

    iseehk
    @iseehk
    given: I am using version : 1.0.2
    Zan Loy
    @zanloy
    Hi. I am trying to take the result of a /login POST and put the JWT from that request into my environment. How would I go about doing this? I can isolate the value by doing: post /login | jq .token
    Zan Loy
    @zanloy
    Actually maybe I'm just dumb... I might have a fundamental misunderstanding of how JWT works.
    Roberto Vallejo
    @NarizWallace_twitter
    hi all, I'm wondering if there is a way to load the functions in my .bash_profile so I can execute them by surronding with `
    I tried source .bash_profile
    xoss
    @xoss

    Hello everyone. It seems for me, that http-prompt somehow ignores Content-Type: application/x-www-form-urlencoded. Even though httpie preview returns the right command

    http --form --proxy=https://localhost:9999 --verbose --verify=no http://example.com password=bar username=foo Content-Type:application/x-www-form-urlencoded

    the actual request treats the body to be json

    http://example.com> post
    POST / HTTP/1.1
    Accept: application/json, */*
    Accept-Encoding: gzip, deflate
    Connection: keep-alive
    Content-Length: 38
    Content-Type: application/x-www-form-urlencoded
    Host: example.com
    User-Agent: HTTPie/2.0.0
    
    {"password": "bar", "username": "foo"}

    Whereas, when running the httpie command directly on the shell, it's interpreted correctly

    $ http --form --proxy=https://localhost:9999 --verbose --verify=no http://example.com password=bar username=foo Content-Type:application/x-www-form-urlencoded                                                                                                  
    POST / HTTP/1.1
    Accept: */*
    Accept-Encoding: gzip, deflate
    Connection: keep-alive
    Content-Length: 25
    Content-Type: application/x-www-form-urlencoded
    Host: example.com
    User-Agent: HTTPie/2.0.0
    
    password=bar&username=foo

    Has someone experienced this issue so far as well? Was browsing the reported issue, but couldn't find something related.

    ubuntupunk
    @ubuntupunk
    < code>http-prompt http://httpbin.org
    Traceback (most recent call last):
    File "/home/afropunk/.local/bin/http-prompt", line 7, in <module>
    from http_prompt.cli import cli
    File "/home/afropunk/.local/lib/python2.7/site-packages/http_prompt/cli.py", line 10, in <module>
    from httpie.plugins import FormatterPlugin # noqa, avoid cyclic import
    File "/home/afropunk/.local/lib/python2.7/site-packages/httpie/plugins/init.py", line 6, in <module>
    from httpie.plugins.base import (
    File "/home/afropunk/.local/lib/python2.7/site-packages/httpie/plugins/base.py", line 104
    def format_headers(self, headers: str) -> str:
    ^
    SyntaxError: invalid syntax
    </code>
    Just installed
    anyone debug?
    DEVILLE
    @jcdevil

    Hello !
    Trying to send a GET request with digest auth, I get the following error :

    http-prompt http://app.example.com:8080
    Version: 1.0.0
    http://app.example.com:8080> --auth-type digest
    http://app.example.com:8080> --auth foo:bar
    http://app.example.com:8080> get
    usage: http [--json] [--form] [--compress] [--pretty {all,colors,format,none}] [--style STYLE] [--unsorted] [--sorted] [--format-options FORMAT_OPTIONS] [--print WHAT] [--headers] [--body] [--verbose]
                [--all] [--history-print WHAT] [--stream] [--output FILE] [--download] [--continue] [--session SESSION_NAME_OR_PATH | --session-read-only SESSION_NAME_OR_PATH] [--auth USER[:PASS]]
                [--auth-type {basic,digest}] [--ignore-netrc] [--offline] [--proxy PROTOCOL:PROXY_URL] [--follow] [--max-redirects MAX_REDIRECTS] [--max-headers MAX_HEADERS] [--timeout SECONDS] [--check-status]
                [--path-as-is] [--verify VERIFY] [--ssl {ssl2.3,tls1,tls1.1,tls1.2}] [--ciphers CIPHERS] [--cert CERT] [--cert-key CERT_KEY] [--ignore-stdin] [--help] [--version] [--traceback]
                [--default-scheme DEFAULT_SCHEME] [--debug]
                [METHOD] URL [REQUEST_ITEM [REQUEST_ITEM ...]]
    http: error: unrecognized arguments: GET http://app.example.com:8080

    Any tip is welcome. Thx !

    odbuser2
    @odbuser2
    def format_headers(self, headers: str) -> str:
                                    ^

    SyntaxError: invalid syntax

    Experiencing the same issue.
    Mint linux(19.3 with updates)
    HTTPie (0.9.8)
    http-prompt from pip (9.0.1 python 2.7).

    odbuser2
    @odbuser2
    oops, http-prompt should be installed with python3-pip not python-pip. That fixed the issue.
    John Meow
    @j0hnmeow
    Is it possible to use a custom theme?
    David Karlsson
    @davidklsn
    how do I set params for a get request?
    David Karlsson
    @davidklsn
    i can make a get request by cd {url_with_parms} and then get, but that seems unnecessary
    BVMarius
    @BVMarius
    Hello,
    I'm facing a strange behaviour. If i'm running the preview of the call with httpie every thing looks as expected however when I'm running a GET call I'm getting http: error: unrecognized arguments: GET http://localhost:8080/api/test. If i redirect the hole preview to a file or just take it and runit in httpie not on http-prompt I'm getting a result as expected.
    What could be wrong. I have to mention that I'm using other parmaters as well (--auth=<encoded jwt token> and ----auth-type=jwt)
    Thank you
    Elena Lape
    @elenalape
    @/all Hey hey! HTTPie chat is now on Discord. Join the server to get HTTPie support from the community, discuss features and contributing, and talk about all things API development: https://httpie.io/chat
    ptitpoulpe
    @ptitpoulpe
    hello, wonder if it’s possible to have a recursive ls ?
    Elena Lape
    @elenalape
    @ptitpoulpe if you come over to Discord, someone will help you find an answer or a solution for what you want to do. The server is quite small now, so the project maintainers themselves may be able to respond soon!