Skip to content

127.0.0.1:8000/press/bank/<page>/<button> not working anymore #2790

Answered by Gerrie12345
Gerrie12345 asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks, I enabled 'Deprecated HTTP API' and it works again.

ChatGPT wrote this for me for the new api:

Dim request As HttpWebRequest = DirectCast(WebRequest.Create("http://127.0.0.1:8000/api/location/1/1/1/press"), HttpWebRequest)
request.Method = "POST"

Dim response As String = New StreamReader(request.GetResponse().GetResponseStream()).ReadToEnd()
Console.WriteLine("API Response: " & response)

It works, but is this the best way to do it?

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Julusian
Comment options

Answer selected by Julusian
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants