|
|
Subject: RE: IIS says: Bad Request (Invalid Verb) - msg#00261
I did not see 100 continue header in your request, and also do you try
to move Authotization header down to after SOAPAction header?
Thanks,
Xiuping
> -----Original Message-----
> From: curl-library-bounces@xxxxxxxxxxxx [mailto:curl-library-
> bounces@xxxxxxxxxxxx]
> Sent: Sunday, March 14, 2004 9:32 PM
> To: curl-library@xxxxxxxxxxxx
> Subject: IIS says: Bad Request (Invalid Verb)
>
> I am building an app that uses libcurl to talk to a .NET web service.
> While this worked perfectly for a while (against IIS 5.0 / ASP.NET
1.0)
> using NTLM or AnyAuth, we recently started testing against IIS 6.0 +
> ASP.NET 1.1 and the NTLM/AnyAuth no longer works...
>
> Any SOAP requests made with NTLM authentication fail after
> negotiation... tcpflow results:
>
> ====================
> POST /mediabinwebservice/MediaBinServer.asmx HTTP/1.1
> Authorization: NTLM
>
TlRMTVNTUAADAAAAGAAYAFIAAAAAAAAAagAAAAoACgBAAAAACAAIAEoAAAAAAAAAUgAAAAAA
>
AABqAAAAAYIAAGludGVyd292ZW5hcGluc3RlaX+ZCEoC9v1dbH389UQKbnz3djzdKu9PVA==
> User-Agent: curl/7.11.1-pre1 (powerpc-apple-darwin7.2.0)
> libcurl/7.11.1-pre1 OpenSSL/0.9.7c ipv6 zlib/1.1.4
> Host: obsfucated.com
> Pragma: no-cache
> Accept: */*
> Content-Type:text/xml; charset=utf-8
> SOAPAction:"http://www.mediabin.com/GetMediaBinServerName"
> Content-Length: 303
>
> <?xml version="1.0" encoding="utf-8"?><soap:Envelope
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:
> Body><GetMediaBinServerName xmlns="http://www.mediabin.com"
> /></soap:Body></soap:Envelope>
> 065.161.004.200.00080-010.000.001.109.58947: HTTP/1.1 400 Bad Request
> Content-Type: text/html
> Date: Mon, 15 Mar 2004 04:26:54 GMT
> Connection: close
> Content-Length: 35
>
> <h1>Bad Request (Invalid Verb)</h1>
> ====================
>
> I have tried this with a variety of libcurl versions, always with the
> same problem. To isolate the problem from my app code, I replicated
the
> results with command-line curl... the EXACT request works perfectly
> with --basic, and simply switching it to --ntlm causes the above
error.
>
> Analysis of the raw HTTP communication shows that the only difference
> b/w the 2 requests is the "Authorization:" as expected, save of course
> the preceeding NTLM handshake.
>
> I basically realize that this isn't a libcurl issue, but am hoping
that
> someone else out there might be using libcurl for .net web services
and
> have an idea for me.
>
> Thanks,
> Alan Pinstein
Thread at a glance:
Previous Message by Date:
Re: IIS says: Bad Request (Invalid Verb)
On Mon, 15 Mar 2004, Alan Pinstein wrote:
> Then, the machines do respond differently:
>
> < Server: Microsoft-IIS/5.0
> < WWW-Authenticate: NTLM
> TlRMTVNTUAACAAAAAAAAADAAAAACAgAA0m1iYUfWTwsAAAAAAAAAAAAAAAAwAAAA
> ---
> > Server: Microsoft-IIS/6.0
> > WWW-Authenticate: NTLM
> TlRMTVNTUAACAAAAAAAAADgAAAACAgACW+BHzM0t6zkAAAAAAAAAAAAAAAA4AAAABQLODgAA
> AA8=
This is the NTLM "type2" message from the server, and it contains a
"challange" which is a supposedly unique/random number in each response from
a server. So it is supposed to differ. Repeated requests to the same server
will show different responses too. (Further details here:
http://davenport.sourceforge.net/ntlm.html#theType2Message)
(It could be interesting to investigate how the 'Flags' field of this differ
between these two type2 messages.)
Other than that, I have no further clues to offer!
--
Daniel Stenberg -- http://curl.haxx.se/ -- http://daniel.haxx.se/
[[ Do not send mails to this email address. They won't reach me. ]]
Next Message by Date:
Delphi + Curl ( CurlPas ) problems
Hello..
i'm having a little problem with CurlPas. let's me
describe my problem.
When i unplug my LAN cable from my machine curl cannot
resolve a DNS ( obvious ).
When i plug back the LAN cable curl cannot resolve the
same host ( which i know is ok )and now my LAN is OK.
it just resolves if i reopen my application.
Something like it's using a cache.
I tryed using:
DnsCacheTimeOut := 0;
i thought that the DnsCacheTimeOut will solve my
problem.
A quote from the CurlPas doc about the DnsCacheTimeOut:
==============
Name resolves will be kept in memory for this number of
seconds. Set to zero (0) to completely disable caching,
or set to -1 to make the cached entries remain forever.
By default, libcurl caches info for 60 seconds.
===============
It acts like it's set to -1 isn't it ??
Am i doing something wrong ???
Thanks for the support..
Cheers..
PG
__________________________________________________________________________
Acabe com aquelas janelinhas que pulam na sua tela.
AntiPop-up UOL - É grátis!
http://antipopup.uol.com.br/
Previous Message by Thread:
Re: IIS says: Bad Request (Invalid Verb)
On Mon, 15 Mar 2004, Alan Pinstein wrote:
> Then, the machines do respond differently:
>
> < Server: Microsoft-IIS/5.0
> < WWW-Authenticate: NTLM
> TlRMTVNTUAACAAAAAAAAADAAAAACAgAA0m1iYUfWTwsAAAAAAAAAAAAAAAAwAAAA
> ---
> > Server: Microsoft-IIS/6.0
> > WWW-Authenticate: NTLM
> TlRMTVNTUAACAAAAAAAAADgAAAACAgACW+BHzM0t6zkAAAAAAAAAAAAAAAA4AAAABQLODgAA
> AA8=
This is the NTLM "type2" message from the server, and it contains a
"challange" which is a supposedly unique/random number in each response from
a server. So it is supposed to differ. Repeated requests to the same server
will show different responses too. (Further details here:
http://davenport.sourceforge.net/ntlm.html#theType2Message)
(It could be interesting to investigate how the 'Flags' field of this differ
between these two type2 messages.)
Other than that, I have no further clues to offer!
--
Daniel Stenberg -- http://curl.haxx.se/ -- http://daniel.haxx.se/
[[ Do not send mails to this email address. They won't reach me. ]]
Next Message by Thread:
release countdown
Hey
If you have _anything_ you want addressed in the upcoming public release,
raise your hand now.
I'm only waiting for a minor VMS build update from Marty Kuhrt, but as soon as
that is in I'm going for a release. Hopefully around mid-week.
There are currently seven issues[*] targeted for 7.11.2, but they depent on
the support/feedback I get from others.
[*] = http://curl.haxx.se/lxr/source/TODO-RELEASE
--
Daniel Stenberg -- http://curl.haxx.se/ -- http://daniel.haxx.se/
[[ Do not send mails to this email address. They won't reach me. ]]
|
|