Comments (6)
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.
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.
@Zash Could you assign this issue to me? I am a beginner and this issue seems like a good first contribution.
from httpie.
@avnogy are you still working on this? Otherwise I'd like to give it a try.
from httpie.
@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.
LOL sorry, dunno where I read tutorial initially. Just re-read the post.
Plugin looks neat!
from httpie.
Related Issues (20)
- Display used server IP in verbose mode HOT 4
- ImportError: cannot import name 'DEFAULT_CIPHERS' from 'urllib3.util.ssl_' HOT 3
- HttpPie decompress the response which was compressed by gzip automatically.
- decompress compressed data HOT 10
- Add support for HTTP/2, HTTP/3, System CA, OCSP Revocation HOT 3
- Support for team collaboration/sync HOT 3
- Not able to import collection from postman HOT 1
- Average speed is reported incorrectly for resumed downloads HOT 1
- How to remove DEFAULT_UA? HOT 1
- Default to localhost HOT 2
- Allow XDG_CONFIG_HOME usage also on Windows
- More statuses support HOT 1
- Unable to install httpie via Chocolatey HOT 14
- [macOS] Lag when piping stdout HOT 5
- Display a warning for using option --ignore-stdin when request fails with content present in stdin
- Request is fired to packages.httpie.io on every invocation of `http` HOT 1
- How to post an empty string as a data field? HOT 2
- werkzeug compatibility
- Docs: Ubuntu/Debian installation script gives error
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from httpie.