Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Bad Luck Brian
- /*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 :)
- Here is the .h Download: http://pastebin.com/x6dTz0bC][C++] SPRX webRequests - Pastebin.com
- No virus scan, its a pastebin :P
- Here is a tutorial on how to use it:
- In your project you have to Add it in the header files.
- Then include it like this: (Assuming you named it webFunctions.h)
- */
- #include "webFunctions.h"
- /*
- Now you will need to add the stub to your project so go in :
- Project -> Properties -> Linker
- Click on the arrow in 'Additional dependecies' and click on edit.
- Now add this
- */
- $(SCE_PS3_ROOT)\target\ppu\lib\libhttp_stub.a
- $(SCE_PS3_ROOT)\target\ppu\lib\libhttp_util_stub.a
- $(SCE_PS3_ROOT)\target\ppu\lib\libnet_stub.a
- /*
- It should look like this: (Of course mine might look a bit different due to some other stuff that i added to my project)
- [IMG]http://puu.sh/aIaB8/7ac6b1d1ac.png[/IMG]
- Then you're ready to test it :) !
- You can call it like this:
- */
- char response[255];
- SendRequest("http://www.google.com/", response, 255);
- /*
- Now response will contain the actual response from google.com which is the web page itself :P
- Here is an example of how i used it :)
- https://www.youtube.com/watch?v=yekZECIdvP8
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement