cURL / Mailing Lists / curl-users / Single Mail

curl-users

Turning on NTLM proxies, causes some form variables to not be sent

From: Theodore H. Smith <delete_at_elfdata.com>
Date: Wed, 29 Oct 2008 20:06:07 +0000

Hi list,

I don't know what is making this problem, but here it is:

When I turn on NTLM proxies, some form variables are not sent to the
server. Sometimes, that is. Sometimes they are sent, othertimes not.

I can't see any consistant pattern. It seems kind of random.

I am getting this error both with libcurl, AND with the curl command
line tool!

I tried accessing the same server, but with no proxy and web browser,
it works fine. I also tried no proxy and a different socket library.

Is this a bug in my own code? Or a bug in my proxy server? Or a bug in
curl? Because I changed two variables at once.

No proxy + using apple's safari (always works)
No proxy + "realbasic socket" (always works)
No proxy + libcurl (always works)

libcurl + proxy server (rarely works)
curl commandline + proxy server (usually but not always works!)

So... either the problem is the proxy server is broken, or libcurl's
proxy support is wrong.

Or perhaps... I am doing something wrong in my code, where I init the
proxy stuff? That's possible I guess, although my code is pretty simple.

What information do you need from me to help pin this problem down?
NTLM support is pretty important to us.

here is my code to turn proxies on:

  curl_easy_setopt( curl, CURLOPT_PROXY, "**proxy_url_here**" );
  curl_easy_setopt( curl, CURLOPT_PROXYAUTH, CURLAUTH_NTLM );
  curl_easy_setopt( curl, CURLOPT_PROXYUSERPWD, "user:pass" );

I call these BEFORE calling curl_formadd. curl_formadd is the last
thing I do before going to curl_easy_perform.

Do you need to see the URLs I'm having problem with? If so... I'll
create some accounts on my server, (the URLs in question are cgi
scripts to do stuff with accounts) and type the URLs up for you.

Once again the parameter can't be found by the server, if I send via
NTLM.

If someone wants to know the address, username and password to my
proxy server, I can email it in private, but I'll have to change the
username and password as soon as i get this bug fixed :) as I can't
leave outsiders with access to this system :)

-------------------------------------------------------------------
List admin: http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2008-10-29