Article ID: 254786 - View products that this article applies to.
This article was previously published under Q254786
This article has been archived. It is offered "as is" and will no longer be updated.
When you send a long query string from a WinInet application to a Web server, the query string may be truncated.
This issue occurs because of the length limitation of the URL in WinInet, which is defined in the Wininet.h file as follows:
This behavior is by design.
Note: Because Internet Explorer and Internet Transfer Control also use WinInet, the same issue may occur.
To resolve this issue, use the HTTP POST method. For example:
Using Internet Transfer Control on the client side:
Using ASP on the server side:
Microsoft provides programming examples for illustration only, without warranty either expressed or implied. This includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This article assumes that you are familiar with the programming language that is being demonstrated and with the tools that are used to create and to debug procedures. Microsoft support engineers can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific requirements.
For additional information on how to properly simulate a Form POST in WinInet, click the article number below to view the article in the Microsoft Knowledge Base:
(http://support.microsoft.com/kb/165298/EN-US/ )HOWTO: Simulate a Form POST Request Using WinInet
For more information on URL-encoding and the format of a Form POST request, see section 8.2 in RFC 1866.
Article ID: 254786 - Last Review: October 20, 2013 - Revision: 4.0
Contact us for more help
Connect with Answer Desk for expert help.