Post: [SPRX]Web Requests Simplified
08-07-2014, 07:04 AM #1
(adsbygoogle = window.adsbygoogle || []).push({}); This is outdated, the code is really messy and doesn't work for every games. You should only use this as a reference.



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 Smile

Here is the .h Download: You must login or register to view this content.
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)

You must login or register to view this content.


Then you're ready to test it Smile !

You can call it like this:
    
char response[255];
SendRequest("https://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 Smile

The following 46 users say thank you to Bad Luck Brian for this useful post:

Absolute Zero, ALI ALHILFI, Azus, B777x, BaSs_HaXoR, Boliberrys, Cyb3r, Dan Dactyl, Dog88Christian, ErasedDev, Esker, FAKA_ELITE, flynhigh09, ImAzazel, iMoD1998, Joren, KAYLEB_HD, Loxy, M0T1VAT10N, mariokilla23, milky4444, MODZ4FUN420, MrBerrics, Norway-_-1999, John, NotALegitPlayer, Notorious, oCoyeks, OLDSCHOOLMODZHD, PassiveBypass, ProfoundModz, QuantumDev, Roby69--, RouletteBoi, RTE, Shark, SiLLiKaLaX, SnaY, Swaqq, Thirst, Tipton_Modz, Tustin, Winter, xPAQz

The following user groaned Bad Luck Brian for this awful post:

YOUR MOM HOE
05-05-2015, 10:42 AM #20
SC58
Former Staff
Originally posted by shakos View Post
i can see the future .. sprx cid stealers


it don't matter as u can open the sprx in ida and remove the check
05-05-2015, 11:06 AM #21
shakos
Banned
Originally posted by SC58 View Post
it don't matter as u can open the sprx in ida and remove the check


not every 1 has the skills to do so
05-27-2015, 01:09 PM #22
KAYLEB_HD
Vault dweller
Originally posted by Bad
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 Smile

Here is the .h Download: You must login or register to view this content.
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)

You must login or register to view this content.


Then you're ready to test it Smile !

You can call it like this:
    
char response[255];
SendRequest("https://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 Smile



This is freezeing my game :(
07-23-2015, 06:21 PM #23
gopro_2027
Vault dweller
Originally posted by HD View Post
This is freezeing my game :(


I think we need a different address for gta

"#define HTTP_POOL_BUFFER 0x2110000 //change this to an address with a free size of 0x10000 bytes ! This one is for ghosts 1.14"

so we need to find it but I have no clue how
07-24-2015, 05:29 AM #24
Passion
League Champion
You have to use sockets for GTA..
07-24-2015, 06:51 AM #25
KAYLEB_HD
Vault dweller
I have proper sockets now anyway it just out dated
09-20-2018, 07:07 PM #26
xelahot
Gym leader
I always get errors, could it be because of my SDK version? I can build project without any problems but when it comes to use networking libraries it never works. I tried your code, and alot more.
What version of the SDK do you have installed on your computer?

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo