bidesh
February 10th, 2009, 05:41 AM
Hi All,
I want to send HTTP POST message to my web server method. But my query string consist of '&' and NULL.
I am using wininet classes method such as,
HttpSendRequest();
My query string for the POST request is mentioned below.
POST /Service/Service.asmx/CheckValidity HTTP/1.1
Host: localhost
Content-Type: application/x-www-form-urlencoded
Content-Length: length
Test1=<data including '&' and NULL>
Body part like this "Ab1Cde4&adjdkNULLdfa!#A
When I send this request to web server, web server does not get the same string rather the string gets truncated.
I am testing this with a web server build locally using ASP.NET
Please help me how I can solve this
Thanks,
Bidesh
I want to send HTTP POST message to my web server method. But my query string consist of '&' and NULL.
I am using wininet classes method such as,
HttpSendRequest();
My query string for the POST request is mentioned below.
POST /Service/Service.asmx/CheckValidity HTTP/1.1
Host: localhost
Content-Type: application/x-www-form-urlencoded
Content-Length: length
Test1=<data including '&' and NULL>
Body part like this "Ab1Cde4&adjdkNULLdfa!#A
When I send this request to web server, web server does not get the same string rather the string gets truncated.
I am testing this with a web server build locally using ASP.NET
Please help me how I can solve this
Thanks,
Bidesh