title: Exception HTTP/1.1 400 Bad Request with Indy TidHttp
body: <p>I have a main application which calls a DLL.  This DLL is where I do my HTTP requests using Indy's <code>TIdHTTP</code> component.  It runs fine the first time, but then after closing the DLL and re-opening it, I get an <code>HTTP/1.1 400 Bad Request</code> exception:</p>
  
  <pre><code>var
    idgetInfo : TIdHTTP;
  begin
    idgetInfo := TIdHTTP.Create(nil);
    idgetInfo.AllowCookies := True;
    idgetInfo.HandleRedirects := True;
    try
      result := idgetInfo.Get(GetString);
    finally 
      if Assigned(idgetInfo) then
        FreeAndNil(idgetInfo);
    end;
  end;
  </code></pre>