Is there anyway to move over the PostHTTPPage/Ex and AddPostVariable into Delphi (or and existing Delphi equivalents) as I'm trying something at the moment and it would make it a lot easier if I could access my website to get some of the info.
Is there anyway to move over the PostHTTPPage/Ex and AddPostVariable into Delphi (or and existing Delphi equivalents) as I'm trying something at the moment and it would make it a lot easier if I could access my website to get some of the info.
By reading this signature you agree that mixster is superior to you in each and every way except the bad ways but including the really bad ways.
Indy components..
Verrekte Koekwous
Thank you - got it all setup now only problem is I can't even get it to return a webpage Maybe someone can point me in the right direction?
I know there's no URL in there - I took it out as it points to one of my sites files.Code:program test; {$APPTYPE CONSOLE} uses SysUtils, IdHTTP; var MyHTTP: TIdCustomHTTP; begin with MyHTTP do begin Connect; try WriteLn(Get('')); ReadLn; finally Disconnect; end; end; end.
By reading this signature you agree that mixster is superior to you in each and every way except the bad ways but including the really bad ways.
I was using Create before but it was causing me problems (had even less running than with that) but I'll try again quickly and post up the results.
Edit: I've gotten a little closer now (Was just using MyHTTP.Create and not assigning it to TIdCustomHTTP.Create ><) only now I'm getting an exception as it wants a host =/ who knew it could be so hard just to get it to return a webpage.
By reading this signature you agree that mixster is superior to you in each and every way except the bad ways but including the really bad ways.
I'll try that, though I wanted to use custom as it had a few extra features.
And I know it gets a lot easier when you get used to working with objects, but I stemmed from PHP, then a bit of C and lastly some Scar, so object-orientated isn't hard to get my head around, but is hard to get used to (doesn't help when I'm still playing with PHP and scar a lot).
Edit: No need for Connect or Disconnect >< That's what was giving me problems. I only did that the first time as I was following the example in the pdf help.
By reading this signature you agree that mixster is superior to you in each and every way except the bad ways but including the really bad ways.
There are currently 1 users browsing this thread. (0 members and 1 guests)