Forum > Networking and Web Programming

synapse THTTPSend socks5 problem?

(1/2) > >>

awaked2:
hello i'm newbie! i have a question.


--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---    response := TStringStream.Create('');  http := THTTPSend.Create;  http.UserAgent := 'Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.2; WOW64; Trident/7.0';  http.MimeType := 'application/x-www-form-urlencoded; charset=UTF-8';  http.Sock.SocksIP := 'IP'; //  http.Sock.SocksPort := '1080';  http.Sock.SocksType := ST_Socks5;  http.Sock.SocksUsername := 'UserName'; //  http.Sock.SocksPassword := 'Password'; //  http.Sock.ConnectionTimeout := 6000;  jsontext := EncodeURL('Some JSON Data');   WriteStrToStream(HTTP.Document, jsontext);  http.HTTPMethod('POST', 'http://.....'); // HTTP site  reulstcode := http.resultcode;                                   
windows10 => resultcode 200 (work)
raspberry pi4 raspbian 32bit => resultcode 500 (not work)

Same code, but only works on Windows.
If I remove the socks5 proxy option it works on Raspbian too.
But why doesn't socks5 work on Raspbian?

BeniBela:
Probably this bug: https://sourceforge.net/p/synalist/bugs/48/

It is been fixed in SVN trunk

awaked2:
//Port := IntToStr(ResolvePort(Port));

Thank you for answer. I removed that line, but it doesn't work......

sstvmaster:
synapse svn trunk -> https://sourceforge.net/p/synalist/code/HEAD/tree/trunk/

awaked2:
I tried installing with the r222 version and it still doesn't work.

Navigation

[0] Message Index

[#] Next page

Go to full version