SA-MP Forums Archive
[Plugin] [REL] pwncurl 0.1 (download websites with pawn) (help with win-compile needed!!) - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Plugin Development (https://sampforum.blast.hk/forumdisplay.php?fid=18)
+--- Thread: [Plugin] [REL] pwncurl 0.1 (download websites with pawn) (help with win-compile needed!!) (/showthread.php?tid=72260)

Pages: 1 2 3


Re: [REL] pwncurl 0.1 (download websites with pawn) (help with win-compile needed!!) - ICECOLDKILLAK8 - 17.04.2009

Heres a windows version with pre-built binaries but unfortunatly i have only been able to compile it in Visual Studio 2008, However it also contains the source which includes a make file which should work but i havent had a chance to test it yet

Quote:
Originally Posted by the ReadMe
For this to work you will need to place Binaries/curllib.dll and Binaries/openldap.dll in System32 or your servers plugin folder
Download


Re: [REL] pwncurl 0.1 (download websites with pawn) (help with win-compile needed!!) - 1337connor - 25.04.2009

Will this show a website in game?


Re: [REL] pwncurl 0.1 (download websites with pawn) (help with win-compile needed!!) - DMSOrg - 25.04.2009

Quote:
Originally Posted by Connor(GTA24.NET)
Will this show a website in game?
IMPOSSIBILITY! This fetches data from a website and makes it possible to implement it into the script

Lets take my points system for example - if I wer to set up a website called, for example, http://www.undergroundgaming.net and I stored the points files in http://www.undergroundgaming.net/points/, then I could do this:
pawn Код:
format(string, sizeof(string), "[url]http://www.undergroundgaming.net/points/%s.txt"[/url], GetPlayerName(playerid))
and implement string into the fetcher. Then I could use the results as a new string.

EDIT: Oh gosh, forget SQL, I am using this once it hits Windows


Re: [REL] pwncurl 0.1 (download websites with pawn) (help with win-compile neede - yom - 26.04.2009

Edit: ok seem to work

As i'm unbanned i can now post this here:

******Translate(text[], from[], to[], size = sizeof text)
******TranslateEx(text[], from, to, size = sizeof text)

Example:
pawn Код:
printf("%s", ******Translate("Hello world!", "en", "fr"));
//output "Bonjour le monde!"

printf("%s", ******TranslateEx("Cool ca fonctionne", FRENCH, ENGLISH));
//output "Cool it works"
I'm aware of the unexpected results, such as ' being transformed into \u0026#39; and also accentization fucked. I will update soon.


Re: [REL] pwncurl 0.1 (download websites with pawn) (help with win-compile needed!!) - mysan - 27.04.2009

wow ! thank you Draco and Yom. So posible read a smiles or images from site ?


Re: [REL] pwncurl 0.1 (download websites with pawn) (help with win-compile needed!!) - DracoBlue - 28.04.2009

Quote:
Originally Posted by [MG
mysan ]
wow ! thank you Draco and Yom. So posible read a smiles or images from site ?
Actually you can read from a site, but that won't be useful. Since you can't display them ingame .

- Draco


Re: [REL] pwncurl 0.1 (download websites with pawn) (help with win-compile needed!!) - mysan - 29.04.2009

Quote:

Actually you can read from a site, but that won't be useful. Since you can't display them ingame

Hmm... you right , this bad but it was good because text can be read from the site and posible use as Database. RESPECT !


Re: [REL] pwncurl 0.1 (download websites with pawn) (help with win-compile neede - HB - 30.04.2009

Nice idea, might be usefull for MySQL integration, makes it all alot faster I guess.

Ps. want a mirror?


Re: [REL] pwncurl 0.1 (download websites with pawn) (help with win-compile needed!!) - Gamer_Z - 29.08.2010

this plugin is still better than the http function cuz it can actually return values so you can use them in ex 1 cmd, and with http u need to make some global vars and change everithing in your script.
i tried to make a stock pwncurl get function using http() but it just doesn't return data while executing a public like ongamemodeinit etc... ;/
pwncurl does!
shame, on my windows 7 desktop it works , and om my win 7 laptio it doesn't work. bleh installed VS 2010 etc and nothing, even curllib for windows.


Re: [REL] pwncurl 0.1 (download websites with pawn) (help with win-compile needed!!) - Calgon - 29.08.2010

Quote:
Originally Posted by RyDeR`
Посмотреть сообщение
This is better than the HTML plugin. With HTML you need to have a specific extention to get the info. Here you just give the name of the site and it gives you the source.
I think you mean HTTP function, it's not even a plugin...


Re: [REL] pwncurl 0.1 (download websites with pawn) (help with win-compile needed!!) - RyDeR` - 04.09.2010

Quote:
Originally Posted by Calgon
Посмотреть сообщение
I think you mean HTTP function, it's not even a plugin...
Ah, yes I kinda messep up. Changed.


Re: [REL] pwncurl 0.1 (download websites with pawn) (help with win-compile needed!!) - Hitman-97- - 14.04.2011

that means we can open webpages on sa-mp server?


Re: [REL] pwncurl 0.1 (download websites with pawn) (help with win-compile needed!!) - [03]Garsino - 14.04.2011

Quote:
Originally Posted by Hitman-97-
Посмотреть сообщение
that means we can open webpages on sa-mp server?
No, but you can get the content on it.

And you should also check out SA:MP's native http() function


Re: [REL] pwncurl 0.1 (download websites with pawn) (help with win-compile needed!!) - Zh3r0 - 14.04.2011

So this is basically the same thing as HTTP();


Re: [REL] pwncurl 0.1 (download websites with pawn) (help with win-compile needed!!) - [03]Garsino - 14.04.2011

Quote:
Originally Posted by Zh3r0
Посмотреть сообщение
So this is basically the same thing as HTTP();
Yeah except that this was created way before someone even thought about making a HTTP!


Re: [REL] pwncurl 0.1 (download websites with pawn) (help with win-compile needed!!) - [ADC]Aldi96 - 22.04.2011

Is nice work
good work!!!!!!
I test this men thank you!!!!!


Re: [REL] pwncurl 0.1 (download websites with pawn) (help with win-compile needed!!) - Kwarde - 22.04.2011

Guys, you could better use the standard HTTP function from SAMP


AW: [REL] pwncurl 0.1 (download websites with pawn) (help with win-compile needed!!) - asdfgh98 - 09.08.2011

And how we can use the httpd function like pwncurl?


Re: [REL] pwncurl 0.1 (download websites with pawn) (help with win-compile needed!!) - Gamer_Z - 09.08.2011

https://sampwiki.blast.hk/wiki/HTTP
..


Re: [REL] pwncurl 0.1 (download websites with pawn) (help with win-compile needed!!) - max_richards - 09.08.2011

That's interesting. And somebody explain in detail why?