[Implemented] Proxy support for HTTP lib

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
thyphoon
Enthusiast
Enthusiast
Posts: 345
Joined: Sat Dec 25, 2004 2:37 pm

[Implemented] Proxy support for HTTP lib

Post 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
User avatar
Kwai chang caine
Always Here
Always Here
Posts: 5494
Joined: Sun Nov 05, 2006 11:42 pm
Location: Lyon - France

Re: [PB 5.50] Proxy support for HTTP lib

Post by Kwai chang caine »

+ 1
Never i can test and use codes create with the PB Lib :(
ImageThe happiness is a road...
Not a destination
infratec
Always Here
Always Here
Posts: 7582
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

Re: [PB 5.50] Proxy support for HTTP lib

Post 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
User avatar
thyphoon
Enthusiast
Enthusiast
Posts: 345
Joined: Sat Dec 25, 2004 2:37 pm

Re: [PB 5.50] Proxy support for HTTP lib

Post 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()
infratec
Always Here
Always Here
Posts: 7582
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

Re: [PB 5.50] Proxy support for HTTP lib

Post 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
User avatar
thyphoon
Enthusiast
Enthusiast
Posts: 345
Joined: Sat Dec 25, 2004 2:37 pm

Re: [PB 5.50] Proxy support for HTTP lib

Post 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
metalos
User
User
Posts: 29
Joined: Thu Apr 19, 2012 8:32 am

Re: [PB 5.50] Proxy support for HTTP lib

Post by metalos »

+1
Include Proxy in the core...
User avatar
le_magn
Enthusiast
Enthusiast
Posts: 277
Joined: Wed Aug 24, 2005 12:11 pm
Location: Italia

Re: [PB 5.50] Proxy support for HTTP lib

Post by le_magn »

+1
Image
tj1010
Enthusiast
Enthusiast
Posts: 716
Joined: Mon Feb 25, 2013 5:51 pm

Re: [PB 5.50] Proxy support for HTTP lib

Post 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.
Post Reply