AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Zurück Delphi-PRAXiS Programmierung allgemein Netzwerke Delphi Indy 10 (HTTP-Server), Firefox 3.5 und jQuery.post
Thema durchsuchen
Ansicht
Themen-Optionen

Indy 10 (HTTP-Server), Firefox 3.5 und jQuery.post

Ein Thema von SubData · begonnen am 19. Feb 2010 · letzter Beitrag vom 18. Mär 2010
 
ele

Registriert seit: 18. Feb 2009
129 Beiträge
 
Delphi 2010 Professional
 
#10

Re: Indy 10 (HTTP-Server), Firefox 3.5 und jQuery.post

  Alt 16. Mär 2010, 13:13
Hast du das getestet oder einfach mal kurz den Code überflogen?

Weil in meinen Source steht


Delphi-Quellcode:
              
if ParseParams then begin
  if TextIsSame(LContentType, ContentTypeFormUrlencoded) then begin
    LRequestInfo.DecodeAndSetParams(LRequestInfo.UnparsedParams);
  end else begin
    // Parse only query params when content type is not 'application/x-www-form-urlencoded' {Do not Localize}
    LRequestInfo.DecodeAndSetParams(LRequestInfo.QueryParams);
  end;
und LRequestInfo ist

LContentType := ExtractHeaderItem(LRequestInfo.ContentType); und da ExtractHeaderItem folgendes macht

Delphi-Quellcode:
function ExtractHeaderItem(const AHeaderLine: String): String;
var
  s: string;
begin
  // Store in s and not Result because of Fetch semantics
  s := AHeaderLine;
  Result := Trim(Fetch(s, ';')); {do not localize}
end;
müsste es meiner Meinung nach funktionieren.
  Mit Zitat antworten Zitat
 


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 17:59 Uhr.
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz