SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Plugin Development

Reply
 
Thread Tools Display Modes
Old 07/04/2009, 01:07 PM   #1
DracoBlue
Gangsta
 
Join Date: Apr 2006
Posts: 680
Reputation: 74
Default [REL] pwncurl 0.1 (download websites with pawn) (help with win-compile needed!!)

Hello,

I want to release this little plugin, which is doing not much, but downloading websites (synchron) so I can use them inside of the samp-server.

pwncurl 0.1
o Download (22KB)

Usful addons
o urlencode (pwn, useful for encoding parameters in url)

HELP needed!
_________________________________________________
Currently I can only provide a pwncurl.so (for linux) and the source code, since I was not able to compile it on windows, yet. I would like to compile it on mingw-environment or something like that, to have no dependency to the visual studio runtime environment.
--> Ticket#2 precompiled pwncurl.dll for windows is not available, yet
Experimental Windows Versions available by Killerkid. & JeNkStAX.
_________________________________________________

What for?
Initially I made this for my clientside anticheat-protection to coordinate the servers, but I guess one could implement an automated filterscript/gamemode version detection by using this . Or dictionary services? No idea what's all possible, if you have access to websites content from ingame! If you need _more_ then please check out Boylett's xSockets instead.

Example
Code:
 new uri[255];
 format(uri, 255, "%s", "http://example.org");
 new content[1024];
 pwncurl_get(uri,content,1024);
 printf("Content of uri %s is %s", uri, content);
Regards,
DracoBlue
__________________

dcmd 1.0 | dini 1.6 | djson 1.6.2 (The offic. Dini²) | DMap 0.4 | DModule 0.13 (Dynamic GM/FS) | DUDB 2.4 | DTest 1.2 | Dutils 1.10

[dracoblue's dev-diary][php + javascript developer]


Last edited by DracoBlue; 11/09/2012 at 12:17 PM.
DracoBlue is offline   Reply With Quote
Old 07/04/2009, 01:13 PM   #2
gijsmin
Big Clucker
 
Join Date: Aug 2008
Posts: 177
Reputation: 0
Default Re: [REL] pwncurl 0.1 (download websites with pawn)

WOW Great!
gijsmin is offline   Reply With Quote
Old 07/04/2009, 02:58 PM   #3
mako
Little Clucker
 
Join Date: Mar 2008
Posts: 5
Reputation: 0
Default Re: [REL] pwncurl 0.1 (download websites with pawn)

I just wanted to start to make my first own plugin - but this is exactly what I was looking for ;-P
I think I'll start making plugins later, that's much more comfortable this way.
(want to use us it to request a xml file from the internet)
mako is offline   Reply With Quote
Old 07/04/2009, 03:15 PM   #4
lavamike
Huge Clucker
 
lavamike's Avatar
 
Join Date: Mar 2008
Posts: 384
Reputation: 2
Default Re: [REL] pwncurl 0.1 (download websites with pawn)

Looks very nice!

But it's not windows?
lavamike is offline   Reply With Quote
Old 07/04/2009, 03:39 PM   #5
DracoBlue
Gangsta
 
Join Date: Apr 2006
Posts: 680
Reputation: 74
Default Re: [REL] pwncurl 0.1 (download websites with pawn)

Quote:
Originally Posted by lavamike
Looks very nice!

But it's not windows?
Will compile it for windows soon, and add it to the download.

- Draco
__________________

dcmd 1.0 | dini 1.6 | djson 1.6.2 (The offic. Dini²) | DMap 0.4 | DModule 0.13 (Dynamic GM/FS) | DUDB 2.4 | DTest 1.2 | Dutils 1.10

[dracoblue's dev-diary][php + javascript developer]

DracoBlue is offline   Reply With Quote
Old 07/04/2009, 03:55 PM   #6
boylett
Huge Clucker
 
Join Date: Jul 2006
Posts: 441
Reputation: 0
Default Re: [REL] pwncurl 0.1 (download websites with pawn)

Nice
boylett is offline   Reply With Quote
Old 07/04/2009, 04:39 PM   #7
Killerkid
Big Clucker
 
Join Date: Sep 2006
Location: UK
Posts: 197
Reputation: 1
Default Re: [REL] pwncurl 0.1 (download websites with pawn)

Quote:
Originally Posted by lavamike
Looks very nice!

But it's not windows? :'(
Here is one I compiled: http://files.uploadffs.com/2/7abd2565/pwncurl.dll
Killerkid is offline   Reply With Quote
Old 08/04/2009, 10:42 AM   #8
DracoBlue
Gangsta
 
Join Date: Apr 2006
Posts: 680
Reputation: 74
Default Re: [REL] pwncurl 0.1 (download websites with pawn)

Quote:
Originally Posted by Killerkid.
Quote:
Originally Posted by lavamike
Looks very nice!

But it's not windows? :'(
Here is one I compiled: http://files.uploadffs.com/2/7abd2565/pwncurl.dll
Seems not to work for everyone (especially not for me )

Quote:
Originally Posted by EvenemE date=1239165473
Doesn't work with windows yet : (
Yes, serverside is only compiled for linux (and easy compiles for linux ...), yet. It would be great, if somebody could help compiling for windows.
I made a Ticket about that: http://dev.webdevberlin.com/issues/show/2 , please contribute there.

- Draco
__________________

dcmd 1.0 | dini 1.6 | djson 1.6.2 (The offic. Dini²) | DMap 0.4 | DModule 0.13 (Dynamic GM/FS) | DUDB 2.4 | DTest 1.2 | Dutils 1.10

[dracoblue's dev-diary][php + javascript developer]

DracoBlue is offline   Reply With Quote
Old 11/04/2009, 12:37 PM   #9
CracK
Huge Clucker
 
CracK's Avatar
 
Join Date: Nov 2007
Posts: 437
Reputation: 3
Default Re: [REL] pwncurl 0.1 (download websites with pawn) (help with win-compile neede

Trying to compile the plugin on windows I get this:
Code:
--------------------Configuration: pwncurl - Debug--------------------
Compiling source file(s)...
pwncurl.cpp
In file included from E:\Downloads\pwncurl_0_1\pwncurl_src\pwncurl.cpp:37:
E:\Downloads\pwncurl_0_1\pwncurl_src\AMX_SDK\plugincommon.h:36: warning: ignoring
#pragma message
E:\Downloads\pwncurl_0_1\pwncurl_src\pwncurl.cpp: In function `cell
n_pwncurl_get(AMX*, cell*)':
E:\Downloads\pwncurl_0_1\pwncurl_src\pwncurl.cpp:95: error: `_alloca'
undeclared (first use this function)
E:\Downloads\pwncurl_0_1\pwncurl_src\pwncurl.cpp:95: error: (Each undeclared
identifier is reported only once for each function it appears in.)

pwncurl.dll - 2 error(s), 1 warning(s)
How to fix this? (I am using MinGW Developer Studio)
__________________
Custom Enex loader 1.0
map2pwn
CracK is offline   Reply With Quote
Old 11/04/2009, 06:38 PM   #10
max007
Big Clucker
 
Join Date: Dec 2008
Posts: 66
Reputation: 0
Default Re: [REL] pwncurl 0.1 (download websites with pawn) (help with win-compile neede

this plugin does not work for me
max007 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Pawn Won't Compile!! Saorp Help Archive 6 01/04/2010 01:48 PM
Pawn Compile Problem :S batuhan529 Help Archive 14 29/11/2009 07:39 PM
Can someone explain these pawn compile warnings and help me to solve them? dirkblok Help Archive 6 26/10/2009 03:38 PM
Little help needed, 2 Warning in Pawn haha Ghost Dog 13 Help Archive 8 20/05/2009 07:03 PM


All times are GMT. The time now is 06:21 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.