We have to send a large packet to an ASP.Net web service through the URL. We cannot use POST for certain reasons, so we are URL encoding an XML package and we make a GET request to the service.

```
http://service.example.com/collect?content=AAAAAAAA...(+5000 characters)

```

The service responds with 

> 
> Error 404 - File or directory not found.
> 
> 
> 

I have read that there is no error code for max-content-length-exceeded so IIS sends back this 404 error. Knowing that, I have changed the configuration in the following way to allow large requests:

Changed query string length, max URL length, max request length and deactivated validation

```
<httpRuntime 
    requestValidationMode="2.0" 
    maxQueryStringLength="262144000" 
    maxUrlLength="262144000" 
    maxRequestLength="262144000" />
...
<pages validateRequest="false" />
...
<system.webServer>
    <validation validateIntegratedModeConfiguration="false" />
    <security>
        <requestFiltering>
            <requestLimits maxAllowedContentLength="262144000" />
        </requestFiltering>            
    </security>
</system.webServer>

```

I still receive the same error. How do I make a request to my web service with an extremely large/long URL?

**Update 1**

I am not sending images. The content is something like:

```
<packet date="1243235246436">
    <param type="1" id="45">
        5
    </param>
</packet>

```

without the new line characters and URL encoded.

**Update 2**

After setting the limits to a larger number in the IIS Request Filtering the 404 is now transformed to 

> 
> HTTP Error 400. The size of the request headers is too long.
> 
> 
> 

This is because the size of the headers is too large now. Tried to follow the instructions from [this](http://support.microsoft.com/?id=820129) article by adding the MaxFieldLength and MaxRequestBytes registry entries, but I am still capped at 16k URL length.
What can I do to be able to send 1,000,000 long URLs? Is this even possible? What can I do to send at least 65k long URLs? This is the max length a header can have, but my settings are not taken into consideration.