Page 1 of 1
How to get content of webpage
Posted: Mon Jul 08, 2019 9:28 pm
by KironDevCoder
How do I do this? I know the buffer in
https://github.com/devkitPro/3ds-exampl ... twork/http has the content, but how do I convert it to char* or anything else that can be printed on screen?
Re: How to get content of webpage
Posted: Tue Jul 09, 2019 12:18 am
by WinterMute
Firstly welcome to the forum & thanks for signing up and asking your question here.
You mentioned on
the libcrtu issue that you're fairly new to C so I'm going to suggest that you do some reading. The online guide that's most recommended is
Beej's Guide to C Programming although personally I prefer physical books for reference material.
To answer your question more directly though, converting the u8 buffer is really just as simple as casting to a char * i.e.
If you're looking at parsing lines from this buffer (if for instance it's an html page) then you might want to look into fmemopen & fgets. It's difficult to offer concrete advice without more detail on what it is you wnat to achieve though.
Re: How to get content of webpage
Posted: Tue Jul 09, 2019 8:26 am
by KironDevCoder
It doesn't really work for me, it runs fine, but it won't print the content on the screen. Also
didn't work so I changed it to
but that shouldn't change it, right?
Re: Why isn't 3ds-curl not working?
Posted: Wed Jul 17, 2019 1:22 am
by WinterMute
Sorry. We don't support piracy.