Forum in READ ONLY mode! All questions and discussions on Discord official server, invite link: https://discord.gg/VxsGzJ7

HTTP functions not going thru proxy

Only for requests.
Post Reply
nyce
Neophyte
Neophyte
Posts: 17
Joined: 16.06.2016 19:48

HTTP functions not going thru proxy

Post 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.
User avatar
Vizit0r
Developer
Developer
Posts: 3958
Joined: 24.03.2005 17:05
Contact:

Re: HTTP functions not going thru proxy

Post 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.
"Пишите код так, как будто сопровождать его будет склонный к насилию психопат, который знает, где вы живете". (с) Макконнелл, "Совершенный код".
nyce
Neophyte
Neophyte
Posts: 17
Joined: 16.06.2016 19:48

Re: HTTP functions not going thru proxy

Post 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 :?
User avatar
Vizit0r
Developer
Developer
Posts: 3958
Joined: 24.03.2005 17:05
Contact:

Re: HTTP functions not going thru proxy

Post 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.
"Пишите код так, как будто сопровождать его будет склонный к насилию психопат, который знает, где вы живете". (с) Макконнелл, "Совершенный код".
Post Reply