Search found 15 matches

by scriptmaster
Wed Nov 03, 2010 11:27 pm
Forum: Coding Questions
Topic: Openssl or libcurl
Replies: 11
Views: 4907

Re: Openssl or libcurl

By the way, this is a nice URL from libcurl - hope this helps someone like me ;)

http://curl.haxx.se/libcurl/c/postit2.html
by scriptmaster
Wed Nov 03, 2010 11:24 pm
Forum: Coding Questions
Topic: Openssl or libcurl
Replies: 11
Views: 4907

Re: Openssl or libcurl

Oops, I found the issue - it was to do with pointers lol. and it worked!! Yay!

Changed code from:


;; Trying with forms instead
Define.Curl_HTTPPost post, last_post;

curl_formadd(@post, @last_post, #CURLFORM_COPYNAME, @"CMD", #CURLFORM_COPYCONTENTS, @"AUTH", #CURLFORM_END);
curl_formadd ...
by scriptmaster
Wed Nov 03, 2010 11:15 pm
Forum: Coding Questions
Topic: Openssl or libcurl
Replies: 11
Views: 4907

Re: Openssl or libcurl

Hi Kukulkan,

I had to return to curl because there was a new requirement to send multi-form data. I used the LibCurl using RWrappers from http://purearea.net/pb/download/dll/RWLibCurl_7.17.1.zip made by Progi1984

Although a simple example works fine (even without any certificate file), sending ...
by scriptmaster
Fri Oct 29, 2010 11:55 am
Forum: Coding Questions
Topic: Openssl or libcurl
Replies: 11
Views: 4907

Re: Openssl or libcurl

I went through this route and quickly turned to another solution. For Windows, there is a nice code in the codearchive named, Https_SSL_Connect.pb that uses WinAPI - simple and to the point - I was able to upload data perfectly!

I am copying that code here if you are having trouble finding it (By ...
by scriptmaster
Wed May 26, 2010 9:00 am
Forum: Windows
Topic: Q: CreateProcessAsUser from just Username & SessionID? *:-S
Replies: 1
Views: 1897

Q: CreateProcessAsUser from just Username & SessionID? *:-S

I have a PB app that gets called from a printer service account, as a [LOCAL SERVICE] user account. It is supposed to launch a program, say gsview.exe under the useraccount who gave the print job. The printer service sends only TWO PARAMETERS (username and session_id) and NO PASSWORD =( I am stuck ...
by scriptmaster
Mon Feb 22, 2010 10:32 am
Forum: Coding Questions
Topic: Help: SaveImage() vs. AllocateMemory()
Replies: 3
Views: 723

Help: SaveImage() vs. AllocateMemory()

Hi all,

I am new to purebasic. I am writing a screen capture program where I am capturing the screen image into a #Image. Now I need the memory contents of #Image to be sent over network with compression, but I do not want to use SaveImage(). Would it be faster to not write to the disk but directly ...
by scriptmaster
Sun Feb 21, 2010 2:05 am
Forum: Coding Questions
Topic: Mirror Driver or SDL for Screen Capture?
Replies: 0
Views: 730

Mirror Driver or SDL for Screen Capture?

Hi PureBasic PROs,

I am writing a screen capture program. I tried using GDI - the frame rate is VERY SLOW.

Has any pro PureBasic people here have tried creating a Mirror or working with SDL, who can advice me on how to write a VERY FAST Screen capture tool? Target desktops will be 1024x768 34bpp ...
by scriptmaster
Sat Mar 28, 2009 9:52 pm
Forum: Coding Questions
Topic: ReceiveHTTPFile - works with proxies? If so, need Source :D
Replies: 0
Views: 516

ReceiveHTTPFile - works with proxies? If so, need Source :D

Does the inbuilt ReceiveHTTPFile procedure of PureBasic works seamlessly over proxies? Can anyone test, please?

If yes, can I know/see how it was written? :D
by scriptmaster
Sat Mar 28, 2009 7:59 pm
Forum: Coding Questions
Topic: Fast Cross Platform Screen Capture
Replies: 2
Views: 1238

*BUMP*

Anybody know a simple Screen capture code that is cross platform and produces JPEG output?
by scriptmaster
Thu Mar 26, 2009 1:49 am
Forum: Coding Questions
Topic: Fast Cross Platform Screen Capture
Replies: 2
Views: 1238

Fast Cross Platform Screen Capture

I was going through lots of posts in the forums for a Screen Capture code but I am able to find code that is either slow (GDI), or if it uses DirectX, it is quite unreadable/confusing, or specific to an OS (not cross-platform).

Can someone please post a Screen Capture code that is cross-platform ...
by scriptmaster
Thu Mar 26, 2009 1:35 am
Forum: Coding Questions
Topic: Constant connection to HTTP server
Replies: 3
Views: 1383

I have the exact same requirement. Instead of using PHP or other server side scripting language and having to use my Apache server for keeping my connections open, I decided to run my own PB server-side code that listens on port 81 (say) on a dedicated server :idea:

So far my tests with Ubuntu ...
by scriptmaster
Wed Mar 18, 2009 1:40 pm
Forum: Coding Questions
Topic: Does OpenNetworkConnection support proxies?
Replies: 2
Views: 771

Does OpenNetworkConnection support proxies?

May be my question was not clearer to attract replies? :roll:

Here is a simpler version: Does OpenNetworkConnection or similar automatically support connections over HTTP/SOCKS proxies in the network?

I don't have a proxy to test, and all I have is localhost :P Which HTTP proxy do you folks think ...
by scriptmaster
Fri Mar 13, 2009 4:22 pm
Forum: Off Topic
Topic: Code Decoration: The End
Replies: 15
Views: 3020

Code Decoration: The End

I use the following to wrap PB codeblocks:


;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;{;;;;;;;;;;;;;; INCLUDES ;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

IncludeFile "Common.pb"
IncludeFile "EventProcs.pb ...
by scriptmaster
Fri Mar 13, 2009 4:18 pm
Forum: Coding Questions
Topic: Webgadget and capturing events
Replies: 1
Views: 1344

Webgadget and capturing events

Is WebGadget cross platform?

Suppose I have a <input type="button" value="Click me" /> button. Is it possible to capture an onclick event of the button in PB?
by scriptmaster
Fri Mar 13, 2009 3:26 pm
Forum: Coding Questions
Topic: Does OpenNetworkConnection support proxies?
Replies: 2
Views: 771

Does OpenNetworkConnection support proxies?

Hello there PB Gurus,

About me: PB Newbie, VB6/C#/JavaScript/PHP expert, loves network programming.

I am developing a prototype that can connect to a PHP page that will send binary data back to the client. After a lot of research I chose PB because of its low binary footprint and speed. I would ...