Homebrew Development question, networking on the wii?

nulln

New Member
OP
Newbie
Joined
Jul 28, 2018
Messages
4
Trophies
0
Age
24
XP
62
Country
Australia
What would be the easiest way to go about sending requests to a server, and getting a response?

I'm trying to make a request to my server and use query strings to pass data. Something like
Code:
site.example/make_request?heressomedata=hello&additionaldata=sup
Then I could return the response from the server in json, have the wii read it, and boom! client-server communication. But before I can do any of that, I need to know how to even send data to the server in the first place.
 

GreyWolf

Well-Known Member
Member
Joined
Mar 2, 2015
Messages
5,399
Trophies
0
Age
54
XP
1,516
Country
United States
The console has no HTTP stack so you'll have to bring your own. You can use bushing's. It's what most homebrew seems to use. I don't think it was ever in a repository so you can just grab http.c and http.h from another project like Nintendont.
 

nulln

New Member
OP
Newbie
Joined
Jul 28, 2018
Messages
4
Trophies
0
Age
24
XP
62
Country
Australia
Sorry I'm a couple days late, but with a bit of finicking I got newo's example to compile. I've tried to use the http.c files, I came across them from WiiMC. I would have gone with that if I could have gotten it to work. Thank you both so much, you've been a great help! :D
 

newo

Well-Known Member
Member
Joined
Apr 7, 2011
Messages
937
Trophies
2
Website
wiibrew.org
XP
3,914
Country
Jamaica
Always glad to help when I can especially since there are not many people into wii homebrew dev.

One issue I had with http is that some servers might take upto 15 seconds to respond to each request, this happen because of a issue with http headers. Might not be something you need to worry about right now but if comes up let us know.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    Materia_tofu @ Materia_tofu: oh ye i made a post i did forget they had an account i prob shouldve tagged them in the post tbh