Comments (3)
Hi, Christian. I think there are a couple things going on here, and the tool could be clearer about the results (or lack thereof).
apidump will work for outbound traffic as well if you include a filter; you can do --filter "port 443"
or --filter "port 80"
However, because the connection is encrypted with HTTPS, the tool cannot see which URLs are being accessed. A combination that worked for me is:
sudo bin/akita apidump -c 'curl -I -L http://api.github.com/users/torvalds/events/public' --out ./dumpdir -u root --filter "port 80"
But it is not very interesting because all it shows is the redirection to HTTPS.
from observability-cli.
Sorry for the noise. I was mistaken that apidump
should work both for in- and outbound traffic. Dumping inbound traffic works fine. #close
from observability-cli.
hi @mgritter,
ah, thanks a lot, now it makes sense.
Just hacked together a little proxy server (really bad code, but just to try) that listens on unencrypted http and translates http://
urls to https://
urls while proxying. Now I seem to be able to do:
$ jetis
starting proxy server on localhost:8888 ...
and
sudo akita apidump -c 'curl --proxy http://localhost:8888 http://api.github.com/users/torvalds/events/public' --out . -u root --filter "port 8888"
and I'm getting a 400 KB .har
file with promising content. 🎉
(Maybe as a feature idea ... a built-in proxy in akita apidump
might be useful, so you don't have to hook up another proxy tool like charles to record outgoing requests?)
from observability-cli.
Related Issues (4)
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 observability-cli.