Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get url #11

Closed
stgzach opened this issue Oct 2, 2020 · 5 comments
Closed

Get url #11

stgzach opened this issue Oct 2, 2020 · 5 comments

Comments

@stgzach
Copy link

stgzach commented Oct 2, 2020

Hi I would like to access the urls from a program. For example a local server that will allow me to access the urls and the shared ports in json. so I can use them in my program. Thank you.

@azimjohn
Copy link
Owner

azimjohn commented Oct 2, 2020

Hi, could you elaborate on what you exactly mean?
Examples would be great too.

@stgzach
Copy link
Author

stgzach commented Oct 3, 2020

On ngrok there is a local web server that allows access to the tunnel urls in json format from a local program and that's what I want to do. Example: my program goes to http://localhost:4040/api/tunnels and I get the tunnels in json format and make my code with the tunnel urls. Thank you for that.

@Zenahr
Copy link

Zenahr commented Sep 23, 2021

Yes, this would be useful if you'd like to expose a locally running server programmatically.

@Zenahr
Copy link

Zenahr commented Sep 23, 2021

URI proposal: localhost:port/jprq -> returns JSON as described by @ehily .

azimjohn added a commit that referenced this issue Oct 29, 2021
Rename Host to jprq.io
@azimjohn
Copy link
Owner

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants