Search found 9 matches

Go to advanced search

by pirasalbe
Sat Mar 02, 2019 5:50 pm
Forum: Developing
Topic: [NEW] REST search, JSON results
Replies: 98
Views: 116336

Re: [NEW] REST search, JSON results

very cool. We have also suggestions (while you type), what about implement that one ?
Cool, where can I find more about it??
by pirasalbe
Thu Feb 28, 2019 11:00 pm
Forum: Developing
Topic: [NEW] REST search, JSON results
Replies: 98
Views: 116336

Re: [NEW] REST search, JSON results

I finally managed to build a very little sample app that performs a search using these rest api.
Here you can read the code.

I hope it helps :)
by pirasalbe
Sun Feb 24, 2019 2:53 pm
Forum: Developing
Topic: [NEW] REST search, JSON results
Replies: 98
Views: 116336

Re: [NEW] REST search, JSON results

It is now working, thank you very much.
I'll implement rest call in my app and post here the source code of that part :D.
by pirasalbe
Sat Feb 23, 2019 12:34 pm
Forum: Developing
Topic: [NEW] REST search, JSON results
Replies: 98
Views: 116336

Re: [NEW] REST search, JSON results

ok I applied quick fix, can you check now ? Hi, it is still not working, but now I have a different error. Request URL: https://rest.opensubtitles.org/search/query-matrix Request Method: OPTIONS Status Code: 404 Remote Address: 104.25.132.104:443 Referrer Policy: strict-origin-when-cross-origin To ...
by pirasalbe
Thu Feb 21, 2019 10:02 am
Forum: Developing
Topic: [NEW] REST search, JSON results
Replies: 98
Views: 116336

Re: [NEW] REST search, JSON results

Hi, it is still not working. If you want to simulate browser behaviour you just need to use this curl command: curl -H --header "X-User-Agent: TemporaryUserAgent" https://rest.opensubtitles.org/search/query-matrix It will answer: curl: (6) Could not resolve host: X-User-Agent http useragen...
by pirasalbe
Wed Feb 20, 2019 8:24 pm
Forum: Developing
Topic: [NEW] REST search, JSON results
Replies: 98
Views: 116336

Re: [NEW] REST search, JSON results

Thanks for your help, I'll try it later. Also make sure, you are calling GET with REST, not method OPTIONS I'm calling a GET with REST, but the automatic OPTION request asks the server if it can receive that custom headers (so it's an OPTION request without user-agent or x-user-agent header). Here y...
by pirasalbe
Wed Feb 20, 2019 2:27 pm
Forum: Developing
Topic: [NEW] REST search, JSON results
Replies: 98
Views: 116336

Re: [NEW] REST search, JSON results

Hi, I've made the request as follows (using angular): this.httpClient .get('https://rest.opensubtitles.org/search/query-' + encodeURIComponent(query), { headers: new HttpHeaders().set('X-User-Agent', 'TemporaryUserAgent') }) .subscribe(result => { console.log(result); }); Now browser perform a prefl...
by pirasalbe
Tue Feb 19, 2019 10:04 pm
Forum: Developing
Topic: [NEW] REST search, JSON results
Replies: 98
Views: 116336

Re: [NEW] REST search, JSON results

Thanks for the answer.
I'm trying to search for subtitles using these rest api from a js client and browsers don't allow to change user agent.
Any suggestions??
by pirasalbe
Tue Feb 19, 2019 2:35 pm
Forum: Developing
Topic: [NEW] REST search, JSON results
Replies: 98
Views: 116336

Re: [NEW] REST search, JSON results

Hi,
can you let us specify userAgent directly in url?

For example:

Code: Select all

curl https://rest.opensubtitles.org/search/moviebytesize-750005572/moviehash-319b23c54e9cf314/UserAgent-TemporaryUserAgent

Go to advanced search