Advertisement
BaSs_HaXoR

BadLuckBrian [SPRX]Web Requests Simplified

Aug 8th, 2014
344
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.36 KB | None | 0 0
  1. Bad Luck Brian
  2.  
  3. /*Hey everyone i made a .h today on the httplib found in the sdk, i made a quick header following the docs/samples and wanted to share it with you to make it simpler for beginners :)
  4.  
  5. Here is the .h Download: http://pastebin.com/x6dTz0bC][C++] SPRX webRequests - Pastebin.com
  6. No virus scan, its a pastebin :P
  7.  
  8. Here is a tutorial on how to use it:
  9.  
  10. In your project you have to Add it in the header files.
  11.  
  12. Then include it like this:  (Assuming you named it webFunctions.h)
  13. */
  14.  
  15. #include "webFunctions.h"
  16.  
  17. /*
  18. Now you will need to add the stub to your project so go in :
  19.  
  20. Project -> Properties -> Linker
  21.  
  22. Click on the arrow in 'Additional dependecies' and click on edit.
  23.  
  24. Now add this
  25. */
  26.  
  27. $(SCE_PS3_ROOT)\target\ppu\lib\libhttp_stub.a
  28. $(SCE_PS3_ROOT)\target\ppu\lib\libhttp_util_stub.a
  29. $(SCE_PS3_ROOT)\target\ppu\lib\libnet_stub.a
  30.  
  31. /*
  32. It should look like this: (Of course mine might look a bit different due to some other stuff that i added to my project)
  33. [IMG]http://puu.sh/aIaB8/7ac6b1d1ac.png[/IMG]
  34.  
  35. Then you're ready to test it :) !
  36.  
  37. You can call it like this:
  38. */
  39.  
  40. char response[255];
  41. SendRequest("http://www.google.com/", response, 255);
  42.  
  43. /*
  44. Now response will contain the actual response from google.com which is the web page itself :P
  45.  
  46. Here is an example of how i used it :)
  47.  
  48. https://www.youtube.com/watch?v=yekZECIdvP8
  49. */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement