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

the http example is bad and hard to grasp #49

Open
Ghost-Bit opened this issue May 8, 2022 · 1 comment
Open

the http example is bad and hard to grasp #49

Ghost-Bit opened this issue May 8, 2022 · 1 comment

Comments

@Ghost-Bit
Copy link

It should focus on how to get raw text, not an image. i got it to do this at one point but the code's been lost in the development of my own program.

@oreo639
Copy link
Contributor

oreo639 commented May 9, 2022

This is the only part that changes if you are downloading an image, everything else applies generally (this is just writing the downloaded data straight to the framebuffer):
https://github.com/devkitPro/3ds-examples/blob/master/network/http/source/main.c#L129-L142

You can also use sockets and libcurl:
https://curl.se/libcurl/c/
(You would use those the same way as normal + socInit()/socExit())

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants