cURL / Mailing Lists / curl-users / Single Mail

curl-users

Microsoft Ajax, CURL, Post data

From: Alexander Levshin <aleks.levshin_at_gmail.com>
Date: Wed, 10 Dec 2008 10:32:19 +0300

Environment:
Curl: curl/7.19.2 (i386-pc-win32) libcurl/7.19.2 OpenSSL/0.9.8i zlib/1.2.3
libidn/1.11 libssh2/0.18
Ajax: Microsoft-IIS/6.0 ASP.NET <http://asp.net/> 2.0

Request:
curl --cacert cacert.pem --cert-type PEM --cert client.pem --cert-type PEM
-k -b cookie -d
"strID=123&strValue=315" -H "Accept-Language: en" -H "ajax-session: 0"
-H "ajax-method: ValidateValue" -H "Accept-Encoding: gzip, deflate"
https://anysiteintheuniverse/Function.ashx -v -L

Is anybody posting data using CURL to Microsoft Ajax server? I can
only send GET requests to server and obtain content. I fully
reconstructed http headers by HTTPFox and Fiddler, but posting is always
failed with the following error:
"null;responseData.error={"__type":"System.ArgumentException,
mscorlib, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089","Message":"Object of type 'System.DBNull'
cannot be converted to type 'System.String'.","Source":"mscorlib"};"

I tried to remove extra values in header like "X-MicrosoftAjax:
Delta=true", but without success.

Appreciate for any suggestions.

-- 
Best regards, Aleks

-------------------------------------------------------------------
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-12-10