Homebrew httpcGetResponseStatusCode returns -660561880

  • Thread starter Thread starter mogery
  • Start date Start date
  • Views Views 904
  • Replies Replies 3

mogery

Well-Known Member
Member
Joined
Dec 28, 2016
Messages
161
Reaction score
166
Trophies
0
Location
Hungary
XP
514
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!
 
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