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

Oracle Request Enhancements #2938

Open
cschuchardt88 opened this issue Oct 19, 2023 · 3 comments
Open

Oracle Request Enhancements #2938

cschuchardt88 opened this issue Oct 19, 2023 · 3 comments
Labels
Discussion Initial issue state - proposed but not yet accepted

Comments

@cschuchardt88
Copy link
Member

Summary or problem description
Change Oracle to use HTTP OPTIONS before it gets the URL to see what the options are for the URL. So oracle knows how to call the URL. If the only HTTP option is for example POST then oracle should use a POST request to fetch the URL. Should Support GET, POST, PUT, and DELETE. If multiple options are set than it should default to GET request.

Where in the software does this update applies to?

  • Plugins
@cschuchardt88 cschuchardt88 added the Discussion Initial issue state - proposed but not yet accepted label Oct 19, 2023
@roman-khimov
Copy link
Contributor

Should Support GET, POST, PUT, and DELETE

#1980

@cschuchardt88
Copy link
Member Author

cschuchardt88 commented Oct 19, 2023

I think if oracle's do OPTION requests 1st to determine the verb types. Then we wouldn't have to worry about multiple oracle servers posting data to a server. If all match than from the OPTION request. Then get the accepted verb. And if more then one verb is defined than do GET request. Unless we add an option for different verbs in the oracle native contract. Or even better oracle passes a unique ID to the server that the server can verify somehow. So that the requesting server can know its a valid oracle, and then if more than one request comes in. The server will just sends back the already processed data.

For example oracle sends a HEADER that is a signature of the URL with the POST.

Header would be:
Oracle-Req: <signature format>=<signature>

Signature would be:
verion=<oracle version>;request=<url>;<data format>=<data>

Would that be doable?

@Jim8y
Copy link
Contributor

Jim8y commented Oct 19, 2023

�Well, this is irellevent to this issue, but, @roman-khimov how come you can remember every single issue and pr in the whole neo projects,,,,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Discussion Initial issue state - proposed but not yet accepted
Projects
None yet
Development

No branches or pull requests

3 participants