Re: Indy 10 URL Encode error




"Rob Kennedy" <me3@xxxxxxxxxxx> wrote in message
news:3gnglmFd2h0iU1@xxxxxxxxxxxxxxxxx
> Brian wrote:
>> I have recently upgraded to Indy 10, when I try to run the
>> TIdURI.URLEncode I get an error saying protocol not set, why?
>
> Because the protocol isn't set. (Duh.)
>
> TIdURI.URLEncode works by creating a new TIdURI instance, setting its URI
> property, encoding certain sections of it, and then returning its URI
> property. When reading the URI property, the class will raise an exception
> if the protocol portion is empty.
>
> Look at the implemention of URLEncode and see whether any of the separate
> methods it calls would be more appropriate for what you need.
>
> --
> Rob

Got it sorted, went down to Indy9 and every works fine now :)

Brian


.



Relevant Pages

  • Re: IPSec
    ... >Brian wrote: ... >DNS uses UDP, and you did not block that protocol, so your DNS request were ... UDP protocol was used never crossed my mind. ...
    (comp.security.firewalls)
  • Outlook Express 6 Problems
    ... Account: 'Brian', Server: ... 'shawmail.ed.shawcable.net', Protocol: SMTP, Port: 25, Secure: No, ... after I switched my internet security program to Trend Micro Internet ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress)
  • Re: CUPS, Alpine, and printserving
    ... One should be a USB device, ... Are you suggesting one should use the ipp:// URI rather than http://? ... I always use the http one, on the grounds that I've heard of http. ... I assume one is not really using http, just the protocol. ...
    (Fedora)
  • Re: Why must Slashdot use // instead of http://?
    ... protocol as in the base URI of the document you are viewing. ... document is accessed by http, then the link URIs would also be accessed ...
    (comp.infosystems.www.authoring.html)
  • Re: Network printer setup,
    ... URI: prompt. ... To tell it the protocol to use. ... That way it knows the port on the ...
    (Fedora)