Page 1 of 1

HTTP functions not going thru proxy

Posted: 31.07.2016 4:52
by nyce
You could add a option to use proxy in http://stealth.od.ua/Doc:Manual/Reference/HTTP functions?

Could be the same used in game connection or have option to use another.

Thanks.

Code: Select all

Program New;
var
body, header, post : String;
UseProxy : Boolean;
ProxyIP : String[15];
ProxyPort : Word;
ProxyAuthMethod : Byte;
ProxyType : Byte;
//ProxyAuthLogin : String[48];
//ProxyAuthPass : String[48];

Procedure test;
begin
  post := 'http://pastebin.com/raw/9A307WCB';
  HTTP_Get(post);
  header:=HTTP_Header;
  body:=HTTP_Body;
  addtosystemjournal('Body: ' + body + ' - Header: ' + header);
end;

begin
  UseProxy := True;
  ProxyIP := '201.1.1.1'; //invalid proxy, for testing
  ProxyPort := 1234;
  ProxyType := 0; // http
  ProxyAuthMethod := 0; // no auth
  test;
  SetARStatus(True);
end.

Code: Select all

21:20:37:997 [xxx]: Compiling
21:20:38:013 [xxx]: Compiled succesfully
21:20:38:055 [xxx]: Body: HTTP/1.1 200 OK - Header: all hail the vizi king!
21:20:38:056 [xxx]: Succesfully executed
21:20:38:056 [xxx]: Script proxytest.sc stopped successfuly
21:21:01:082 [xxx]: Unknown Name: Login Client Error;    EIdSocketError : Socket Error # 10060
Connection timed out.
21:21:01:083 [xxx]: Character Unknown Name Disconnected.

Re: HTTP functions not going thru proxy

Posted: 31.07.2016 21:04
by Vizit0r
this simple http client know nothing about proxy. And i will not change it to some another.

You can try to use some dll, or use external scripts.

Re: HTTP functions not going thru proxy

Posted: 31.07.2016 21:51
by nyce
Vizit0r wrote:this simple http client know nothing about proxy. And i will not change it to some another.

You can try to use some dll, or use external scripts.
Thanks Vizi.

For more advanced scripts learn C# and switch to Crome696's ScriptSDK would be a good time investment considering my low programming skills? My main issue to abandon Pascal is that client_dll.dll can only run Pascal code (according to a post i read in forum), and im trying to switch use only Stealth for all my gameplay (if possible, no more Razor/Injection).

What i was trying to accomplish: a script that checks if proxys from a list are ok, and if they ok use to game connect.

But all my idea gone wrong when i noticed http from api uses direct connection :?

Re: HTTP functions not going thru proxy

Posted: 01.08.2016 0:49
by Vizit0r
make exe program on any language, exec it using WinExec. Communication though files, f.e.
Many ways to solve the problems, and you will select.