Page 1 of 1

[Implemented] Proxy support for HTTP lib

Posted: Mon Jul 04, 2016 8:15 am
by thyphoon
Thanks to the PbTeam for this great language. :D
Please support Proxy with HTTP librairie with Système proxy support (Config with OS) and/or forced purebasic proxy (Config in Purebasic code).
It's important for Professional development.

Thansk, and excuse me for my bad english. :P

Re: [PB 5.50] Proxy support for HTTP lib

Posted: Mon Jul 04, 2016 10:32 am
by Kwai chang caine
+ 1
Never i can test and use codes create with the PB Lib :(

Re: [PB 5.50] Proxy support for HTTP lib

Posted: Thu Jul 07, 2016 9:24 am
by infratec
Fix for the moment:

Code: Select all

If Len(proxy$)
  curl_easy_setopt(curl, #CURLOPT_PROXY, @proxy$)
EndIf
If you do it 'by hand' with the inbuild curl library.

But it should be an optional parameter of the http procedures.

Bernd

Re: [PB 5.50] Proxy support for HTTP lib

Posted: Thu Jul 07, 2016 9:37 am
by thyphoon
infratec wrote:Fix for the moment:

Code: Select all

If Len(proxy$)
  curl_easy_setopt(curl, #CURLOPT_PROXY, @proxy$)
EndIf
If you do it 'by hand' with the inbuild curl library.

But it should be an optional parameter of the http procedures.

Bernd
I don't understand. How to use it with ReceiveHTTPFile() or ReceiveHTTPMemory()

Re: [PB 5.50] Proxy support for HTTP lib

Posted: Thu Jul 07, 2016 10:27 am
by infratec
infratec wrote:If you do it 'by hand' with the inbuild curl library.
It's not possible with the 'high-level' procedures.
I'll try to show it in the Tipp's and Trick's section asap.

Bernd

Re: [PB 5.50] Proxy support for HTTP lib

Posted: Thu Jul 07, 2016 12:33 pm
by thyphoon
infratec wrote:
infratec wrote:If you do it 'by hand' with the inbuild curl library.
It's not possible with the 'high-level' procedures.
I'll try to show it in the Tipp's and Trick's section asap.

Bernd
I use my own http librarie. But it's better if the PB Team include Proxy in the core... :P

Re: [PB 5.50] Proxy support for HTTP lib

Posted: Wed Jul 13, 2016 3:37 pm
by metalos
+1
Include Proxy in the core...

Re: [PB 5.50] Proxy support for HTTP lib

Posted: Wed Jul 13, 2016 6:30 pm
by le_magn
+1

Re: [PB 5.50] Proxy support for HTTP lib

Posted: Wed Jul 27, 2016 7:47 am
by tj1010
Maybe you'll get it when they implement HTTP POST and headers which IMO is way more needed since it actually stops you from using PB for most web interaction right now. GET has a size limit which is why web and server developers stay away from it for almost everything dynamic. PB only supports GET with no custom headers.