Homebrew httpcGetResponseStatusCode returns -660561880

mogery

Well-Known Member
OP
Member
Joined
Dec 28, 2016
Messages
161
Trophies
0
Location
Hungary
XP
490
Country
Hungary
So I'm trying to make a remote control for my httpc testing on the 3DS, which lets me specify the URL it should load and print. I use a .txt file on my webserver that I can edit anytime. My problem is that when I try to "download" the contents of the specified url, httpcGetResponseStatusCode strangely returns -660561880.

I really think that I messed up somewhere, I'm not sure how to use one context twice.
NOTE: If I remove httpcGetResponseStatusCode, then httpcBeginRequest fails.

Code: http://pastebin.com/h5QKsR9P

Thanks!
 

MaK11-12

Well-Known Member
Member
Joined
Jul 26, 2009
Messages
241
Trophies
0
Location
Namek
Website
www.deltabeard.com
XP
434
Country
So I'm trying to make a remote control for my httpc testing on the 3DS, which lets me specify the URL it should load and print. I use a .txt file on my webserver that I can edit anytime. My problem is that when I try to "download" the contents of the specified url, httpcGetResponseStatusCode strangely returns -660561880.

I really think that I messed up somewhere, I'm not sure how to use one context twice.
NOTE: If I remove httpcGetResponseStatusCode, then httpcBeginRequest fails.

Code: http://pastebin.com/h5QKsR9P

Thanks!

"Result" is s32. So instead of casting ret as an int, use "%ld" instead of "%d" inside the printf. So:
printf("http_download->httpcGetResponseStatusCode returned %ld\n", ret);​

I doubt this solves your issue though.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    K3Nv2 @ K3Nv2: https://youtu.be/22tVWwmTie8?si=2CEDZldUW5ODozYh meh