Cirrus Soft Posted July 10, 2017 Posted July 10, 2017 Is it possible to post to the search form from a third party site? In other words, the keyword field and search submit button would be on a different site, then it would forward the user to the community site with the search results. So it would need to accept the POST fields. The problem I'm having is the search form uses some kind of csrfKey (hidden input) to validify that the search came from the site. Any way around this?
Numbered Posted July 11, 2017 Posted July 11, 2017 May be better using API for that search connection? Anyway if you need to post to search you can create dirty way for that. Make a forcelogin file (it will give to you authenticated session) Do a search and get an answer Close connection / store it for the other searches Be careful - you need to restrict access to your force login file by the correct web-server params (like a grant access only from special ip address ranges) and this script shoud auth as some special created standard users with default permissions. You might sure for this user can get only public search results Simple example of forcelogin script i posted recently here as another question:
Cirrus Soft Posted July 27, 2017 Author Posted July 27, 2017 Thank you for the feedback! Is there any documentation for using the API for search calls? I've looked and can't find anything specifically for that.
bfarber Posted July 28, 2017 Posted July 28, 2017 There is no way, at present, to perform a search through the REST API I'm afraid.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.