Giter Club home page Giter Club logo

Comments (6)

fatg3erman avatar fatg3erman commented on July 30, 2024

There are no SSL endpoints for those APIs.

https://www.last.fm/api/intro

https://wiki.musicbrainz.org/Development/JSON_Web_Service

Spotify is already done over SSL

from rompr.

gerroon avatar gerroon commented on July 30, 2024

This returns the same result for me?

http://musicbrainz.org/ws/2/artist/5b11f4ce-a62d-471e-81fc-a69a8278c7da?inc=aliases&fmt=json

https://musicbrainz.org/ws/2/artist/5b11f4ce-a62d-471e-81fc-a69a8278c7da?inc=aliases&fmt=json

It seems ro direct to the https in my browser. Curl returns some results over https as well

curl -v https://musicbrainz.org/ws/2/artist/5b11f4ce-a62d-471e-81fc-a69a8278c7da?inc=aliases&fmt=jso

Not sure if it is applicable.

While on it, there is the proxy option you have in the settings. Is that for the server or the client? If I use proxy will the results fetched over proxy?

from rompr.

fatg3erman avatar fatg3erman commented on July 30, 2024

Well it might work but if it's not in the documentation I'm reluctant to use it as it might not be supported.

The proxy option is a little tricky to explain.

Almost all requests from the RompR browser application are proxied via your webserver. So for example, any request to musicbrainz is sent to your webserver first, and the webserver forwards it on, caches the result, and then returns the result to the browser. This is for two reasons: Firstly so I can cache the responses, which dramatically reduces the number of external requests RompR makes and help to stop me exceeding rate limits. and Secondly because cross-site JSON requests are forbidden by browser security policies so I have to do it this way or nothing would work.

The exception to this is any write request to the Last.FM API, which is sent directly from the browser, and possibly one or two other things which currently I can't remember.

What this means is that if you want all your RompR traffic to be sent via an external proxy you should configure the proxy in your browser AND in RompR, which will make the webserver forward requests on via the proxy.

I have never used nor tested the proxy option, it's a simple couple of flags in cURL. I have no idea what effect configuring a proxy in your browser will have on your ability to talk to your webserver. I have no idea what protocols the cURL proxy settings actually support. I have no means of testing it either so if it doesn't work it will be very difficult indeed for me to fix it.

from rompr.

gerroon avatar gerroon commented on July 30, 2024

HI

Thanks for explaining the internal workflow of this. It all makes sense now.

I am going to do the proxy stuff in the browser. Is the audioscrobbler stuff send from the browser or sent from the server?

I want to proxy the server as well but I do not want to do a systemwide proxy for my server. Do you know if it is possible proxy http request (in Apache) per page like Rompr only? I would look up online but apache proxy returns mostly reverse proxies which is not what I am trying to do here.

from rompr.

fatg3erman avatar fatg3erman commented on July 30, 2024

Everything is sent from the server except write requests to audioscrobbler.com (which would only happen if you're logged in the Last.FM and have scrobbling enabled)

The proxy configuration in Rompr only applies to Rompr, all requests from Rompr will be sent through your proxy.

from rompr.

gerroon avatar gerroon commented on July 30, 2024

Ok thanks, I will see what I can do with this proxy stuff.

from rompr.

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.