Code Monkey home page Code Monkey logo

Comments (6)

Zash avatar Zash commented on May 10, 2024 1

Could you assign this issue to me?

@avnogy I have no such privileges here, but if you Just Do It and open a PR referencing this issue, the worst that could happen is that you gain some experience and it gets declared out of scope for the project 😃

from httpie.

Zash avatar Zash commented on May 10, 2024 1

Thanks, wasn't aware of --offline. Still, it'd be awfully convenient to be able to build and print the full URL.

This is not a tutorial, I'm not sure it is even readable. Instead I sorta gave up and made a plugin for httpie.

from httpie.

avnogy avatar avnogy commented on May 10, 2024

@Zash Could you assign this issue to me? I am a beginner and this issue seems like a good first contribution.

from httpie.

quarz12 avatar quarz12 commented on May 10, 2024

@avnogy are you still working on this? Otherwise I'd like to give it a try.

from httpie.

lucasconnellm avatar lucasconnellm commented on May 10, 2024

@Zash If you're still working on your tutorial, you could achieve this easily just using --offline and string manipulation in your shell. Here are two examples to get the the URL encoded path using HTTPie:

PowerShell

(http https://example.com/ foo==bar boop=="escape me please!" --offline | Select-String -Pattern '^GET\s(.+)\sHTTP/\d\.\d$').Matches[0].Groups[1].Value

Bash

http --offline https://example.com/ foo==bar boop=="escape me please" | grep --extended-regexp 'GET\s.+\sHTTP' | sed 's/GET //' | sed -E 's/ HTTP.+//'

Then just concatenate it back with the domain however you'd like. I know it's not as pretty as just --print-url, but to me it seems like that may be out of scope (I'm not a maintainer, but that's just my gut feeling). I wonder if it could maybe be written as a plugin.

from httpie.

lucasconnellm avatar lucasconnellm commented on May 10, 2024

LOL sorry, dunno where I read tutorial initially. Just re-read the post.

Plugin looks neat!

from httpie.

Related Issues (20)

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.