Problem with HTTPRequest from Windows Server 2012

Just starting out? Need help? Post your questions and find answers here.
User avatar
Caronte3D
Addict
Addict
Posts: 1053
Joined: Fri Jan 22, 2016 5:33 pm
Location: Some Universe

Problem with HTTPRequest from Windows Server 2012

Post by Caronte3D »

Hi,
I'm trying to do a simple "HTTPRequest(#PB_HTTP_Post..." request from Windows Server 2012 and doesn't work :?
also if I try to access the destiny server (botvesting.com) from IE, I get the following page error:
Image
But from Edge, from Chrome, from Firefox... all works well :cry:
Anyone can help me? I think the problem is because PB uses the same method than IE.
User avatar
Caronte3D
Addict
Addict
Posts: 1053
Joined: Fri Jan 22, 2016 5:33 pm
Location: Some Universe

Re: Problem with HTTPRequest from Windows Server 2012

Post by Caronte3D »

I have tested this, but not working
https://social.msdn.microsoft.com/Forum ... tification
I don't know what to do more :?

P.D: The same PB code runs nice on Windows10
infratec
Always Here
Always Here
Posts: 6871
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

Re: Problem with HTTPRequest from Windows Server 2012

Post by infratec »

Maybe you can use libcurl.
If needed with an external dll.
User avatar
Caronte3D
Addict
Addict
Posts: 1053
Joined: Fri Jan 22, 2016 5:33 pm
Location: Some Universe

Re: Problem with HTTPRequest from Windows Server 2012

Post by Caronte3D »

I don't used before this lib It's easy to change the http request way of PB? the library is free for commercial use?
Ok I´ll take a look if not another solution.

Thanks!
User avatar
kpeters58
Enthusiast
Enthusiast
Posts: 341
Joined: Tue Nov 22, 2011 5:11 pm
Location: Kelowna, BC, Canada

Re: Problem with HTTPRequest from Windows Server 2012

Post by kpeters58 »

Caronte3D wrote:Hi,
I'm trying to do a simple "HTTPRequest(#PB_HTTP_Post..." request from Windows Server 2012 and doesn't work :?
also if I try to access the destiny server (botvesting.com) from IE, I get the following page error:
Image
But from Edge, from Chrome, from Firefox... all works well :cry:
Anyone can help me? I think the problem is because PB uses the same method than IE.

I have no problem visiting botvesting.com with IE 11 on my Win10 system at all. Do you have the various TLS versions checked under Internet Options -> Advanced?
PB 5.73 on Windows 10 & OS X High Sierra
User avatar
Caronte3D
Addict
Addict
Posts: 1053
Joined: Fri Jan 22, 2016 5:33 pm
Location: Some Universe

Re: Problem with HTTPRequest from Windows Server 2012

Post by Caronte3D »

The problem is only on older windows like windows server 2012
I need a solution for older windows because is the most used on vps services where mi app will be running
Fred
Administrator
Administrator
Posts: 16681
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: Problem with HTTPRequest from Windows Server 2012

Post by Fred »

HTTPRequest() already use libcurl
User avatar
Caronte3D
Addict
Addict
Posts: 1053
Joined: Fri Jan 22, 2016 5:33 pm
Location: Some Universe

Re: Problem with HTTPRequest from Windows Server 2012

Post by Caronte3D »

Fred wrote:HTTPRequest() already use libcurl
Do you think there is a way to solve my problem?

Maybe from external dll lib so I can adjust more params? I don't know :cry:

Any help is appreciate

Thanks in advance! :wink:
User avatar
kenmo
Addict
Addict
Posts: 1967
Joined: Tue Dec 23, 2003 3:54 am

Re: Problem with HTTPRequest from Windows Server 2012

Post by kenmo »

Caronte3D wrote:But from Edge, from Chrome, from Firefox... all works well :cry:
Anyone can help me? I think the problem is because PB uses the same method than IE.
See my post here:
https://www.purebasic.fr/english/viewto ... 32#p517732

I had a similar problem: older Windows, Internet Explorer + PB + Curl could not access websites, but Firefox + Chrome could.

My workaround was to use Wget instead of Curl... you can try that, but it will be more complicated because you're trying to POST data with it. I was just reading pages.
infratec
Always Here
Always Here
Posts: 6871
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

Re: Problem with HTTPRequest from Windows Server 2012

Post by infratec »

Fred wrote:HTTPRequest() already use libcurl
Yes, but if he use the external dll with openssl instead of schannel ...
User avatar
Caronte3D
Addict
Addict
Posts: 1053
Joined: Fri Jan 22, 2016 5:33 pm
Location: Some Universe

Re: Problem with HTTPRequest from Windows Server 2012

Post by Caronte3D »

Thank you to take the time to help me :wink:
Anyway my proble was solved from the server side, I contacted with hosting support and they added a lower version of TSL protocol used by IE.
I can use again the httprequest of PB without problems 8)
Post Reply