i am trying to generate a one line string to pass it to the css validator
http://jigsaw.w3.org/css-validator/validator.html.en#validate-by-input
ShellExecute(self.Handle , 'Open', pchar(ReUrl) , nil, nil, 0);
the string length is usually more than 4000 character length,
the problem is it seems that internet explorer (6.0) take only the first
2046 character of my string when passed using ShellExecute from my app,
although if i enter the string manually ( copy and paste the url )in the
address bar of ie all the string is accepted,
any way to solve for this?
Thanks
Yehia
this seems to be (at least) a internal IE limitation. A similar effect is
setting a lengthy URL via script code, which will fail if the URL is that
long. So I'm afraid that even the instantiation of a IE COM object and
Navigate() to this URL may fail, but you can try it.
The best recommendation I can give is to shorten the URL. Why are these that
long? Can you explain, what you want to achieve? Maybe we find a better
solution ...
JensG
http://jigsaw.w3.org/css-validator/validator?text=HERE SHOULD BE MY TEXT
FILE &usermedium=all
this way the url is always long
"Jens Geyer" <jgx.v...@sp4m-njet.org> wrote in message
news:4149...@newsgroups.borland.com...
Don't use IE. Use Indy or ICS to submit your HTTP request and download the
result. (Google to download either of these excellent communication
libraries).
Cheers,
Nicholas Sherlock
"Nicholas Sherlock" <n_she...@hotmail.com> wrote in message
news:4149...@newsgroups.borland.com...
>> Don't use IE. Use Indy or ICS ...
ACK. In your case, the IE will not be useful because of the limitations and
the given web-interface.
>> Google to download either of these excellent
>> communication libraries).
> how to do this ? never used Indy or ICS (actually don't
> even know what they are :) )
But you used a search engine, didn't you?
http://www.indyproject.org
BTW, your quoting is defective.
JensG
>"Nicholas Sherlock" wrote
>
>> Don't use IE. Use Indy or ICS to submit your HTTP request and download the
>> result. (Google to download either of these excellent communication
>> libraries).
>and how to do this ? never used Indy or ICS (actually don't even know what
>they are :) )
He told you. Use Google to find Indy and/or ICS
http://www.google.com/search?&q=ics+delphi -->
http://www.rtfm.be/fpiette/indexuk.htm as first hit.
--
Anders Isaksson, Sweden
BlockCAD: http://w1.161.telia.com/~u16122508/proglego.htm
Gallery: http://w1.161.telia.com/~u16122508/gallery/index.htm
there are 3 options to validate the css,
1.either by direct input, this one failed because of the limit of ie address
bar
2.or by uploading the file to my server and send posting the url, which is
not practical, cause anyone using my program will have to upload a file to
my server .
3.the last choice is by uploading the file to the w3c,i think this is my
only choice, but don't how to automatically post the css file i made.
"Anders Isaksson" <anders....@REMOVEcej.se> wrote in message
news:tb7lk0tkvdlbhtbv4...@4ax.com...
"Yehia Ahmed" <yeh...@hotmail.com> wrote in message
news:414a...@newsgroups.borland.com...
Then you should try to ask in a more relevant group, perhaps
b.p.d.internet.winsock. This is a fairly exotic problem you are having there...
--
Peter Below (TeamB)
Use the newsgroup archives :
http://www.mers.com/searchsite.html
http://www.tamaracka.com/search.htm
http://groups.google.com
http://www.prolix.be
"Peter Below (TeamB)" <10011...@compuXXserve.com> wrote in message
news:VA.0000b31...@nomail.please...
It shows in my newsreaders list of groups on newsgroups.borland.com. The
full name is
borland.public.delphi.internet.winsock
procedure TForm1.Button1Click(Sender: TObject);
var
Params : TStringList;
url : String;
begin
url :=
'http://jigsaw.w3.org/css-validator/validator?text=&usermedium=all';
Params := TStringList.Create;
try
begin
Params.Add('text=' + Memo1.Lines.Text);
Memo2.Lines.Text := IdHTTP1.Post(url, Params);
end;
finally
Params.Free;
end;
end;
"Peter Below (TeamB)" <10011...@compuXXserve.com> wrote in message
news:VA.0000b32...@nomail.please...