Thread: Proxy authentication broken, bugfix attached
Status: Alpha
Brought to you by:
coroberti
From: F. <fra...@gm...> - 2008-05-19 12:50:57
|
diff -Nru curl-loader-0.44/loader.c curl-loader-0.44-patched/loader.c --- curl-loader-0.44/loader.c 2007-10-14 15:51:05.000000000 +0200 +++ curl-loader-0.44-patched/loader.c 2008-05-19 11:47:10.000000000 +0200 @@ -784,13 +784,14 @@ char proxy_userpwd[256]; sprintf (proxy_userpwd, "%s:%s", url->username, url->password); - curl_easy_setopt(handle, CURLOPT_USERPWD, proxy_userpwd); + curl_easy_setopt(handle, CURLOPT_PROXYUSERPWD, proxy_userpwd); } else { - curl_easy_setopt(handle, CURLOPT_USERPWD, url->proxy_auth_credentials); + curl_easy_setopt(handle, CURLOPT_PROXYUSERPWD, url->proxy_auth_credentials); } - curl_easy_setopt(handle, CURLOPT_HTTPAUTH, url->proxy_auth_method); + curl_easy_setopt(handle, CURLOPT_PROXYAUTH, url->proxy_auth_method); + } } @@ -1315,7 +1316,7 @@ { /* 401 and 407 responses are just authentication challenges, that virtual client may overcome. */ - if (response_status != 401 || response_status != 407) + if (response_status != 401 && response_status != 407) { cctx->client_state = CSTATE_ERROR; } |
From: Robert I. <cor...@gm...> - 2008-05-19 13:07:41
|
Hi Francois, On Mon, May 19, 2008 at 3:50 PM, François <fra...@gm...> wrote: > I've just found this little bug: The proxy authentication does not work, > because incorrect CURL_ option enumerator are used in loader.c > The bugfix is attached to this mail. > I've added a bugfix to a condition that seemed erroneous because always > true. Feel free to remove it if you think I'm wrong. > > Thanks for this great tool. > > Francois Thank you for your patch. I will be applied shortly. With my best wishes and thanks, Sincerely, Robert Iakobashvili, Ph.D. ...................................................................... Assistive technology that understands you ...................................................................... |
From: Robert I. <cor...@gm...> - 2008-05-19 19:02:49
|
Hi François, On Mon, May 19, 2008 at 3:50 PM, François <fra...@gm...> wrote: > > The bugfix is attached to this mail. > Applied. Thanks. You are added to out THANKS list. -- Truly, Robert Iakobashvili, Ph.D. ...................................................................... Assistive technology that understands you ...................................................................... |
From: F. <fra...@gm...> - 2008-05-19 22:30:50
|
I am honored! Thanks ! 2008/5/19 Robert Iakobashvili <cor...@gm...>: > Hi François, > > On Mon, May 19, 2008 at 3:50 PM, François <fra...@gm...> > wrote: > >> The bugfix is attached to this mail. >> > > Applied. Thanks. You are added to out THANKS list. > > -- > Truly, > > Robert Iakobashvili, Ph.D. > ...................................................................... > Assistive technology that understands you > ...................................................................... > > -- *Francois Pesce* |
From: Niko W. S. S. <nik...@ya...> - 2008-05-23 07:36:57
|
How do you limit the transfer rate/throughput in your code in curl-loader? Actually. I want to measure the throughput of a connection in my Apache web server code. Please tell me the idea.. Best, Niko Wilfritz Sianipar Teknik Informatika IT Telkom Bandung --------------------------------- Yahoo! Toolbar kini dilengkapi dengan Search Assist. Download sekarang juga. |
From: Robert I. <cor...@gm...> - 2008-05-24 06:37:45
|
Hi Niko, On Fri, May 23, 2008 at 10:36 AM, Niko Wilfritz Sianipar Sianipar <nik...@ya...> wrote: > How do you limit the transfer rate/throughput in your code in curl-loader? > Actually. I want to measure the throughput of a connection in my Apache web > server code. Please tell me the idea.. In curl-loader you can configure the tag: TRANSFER_LIMIT_RATE - limits client maximum throughput for a url. The value of the tag to be provided as bytes (! not bits) per second. curl-loader is using the facilities provided by the great libcurl library, where you can find the measurements and the control code. apache2 can make bandwidth throutolling by configuration, isn't it? To monitor your networking connections you can for a small number of connection try to use wireshark, whereas for a larger number such proprietary tools as Sniffer, NetReality, Network Physics, NetQoS, etc > Best, > Niko Wilfritz Sianipar > Teknik Informatika IT Telkom Bandung Truly, Robert Iakobashvili, Ph.D. ...................................................................... Assistive technology that understands you ...................................................................... |
From: Niko W. S. S. <nik...@ya...> - 2008-05-24 11:51:17
|
That I want to know is how to implements the throuhput measurement in my Apache code (actually Apache is in C/C++)?? Cause I want to do a scheduling policy in Apache web server that prioritize the fastest connection first. Robert Iakobashvili <cor...@gm...> wrote: Hi Niko, On Fri, May 23, 2008 at 10:36 AM, Niko Wilfritz Sianipar Sianipar wrote: > How do you limit the transfer rate/throughput in your code in curl-loader? > Actually. I want to measure the throughput of a connection in my Apache web > server code. Please tell me the idea.. In curl-loader you can configure the tag: TRANSFER_LIMIT_RATE - limits client maximum throughput for a url. The value of the tag to be provided as bytes (! not bits) per second. curl-loader is using the facilities provided by the great libcurl library, where you can find the measurements and the control code. apache2 can make bandwidth throutolling by configuration, isn't it? To monitor your networking connections you can for a small number of connection try to use wireshark, whereas for a larger number such proprietary tools as Sniffer, NetReality, Network Physics, NetQoS, etc > Best, > Niko Wilfritz Sianipar > Teknik Informatika IT Telkom Bandung Truly, Robert Iakobashvili, Ph.D. ...................................................................... Assistive technology that understands you ...................................................................... ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ curl-loader-devel mailing list cur...@li... https://lists.sourceforge.net/lists/listinfo/curl-loader-devel Best, Niko Wilfritz Sianipar Teknik Informatika IT Telkom Bandung --------------------------------- Yahoo! Toolbar kini dilengkapi dengan Search Assist. Download sekarang juga. |