Recent

Author Topic: HTTP Sockets  (Read 8452 times)

tbonejo

  • Jr. Member
  • **
  • Posts: 66
HTTP Sockets
« on: September 11, 2007, 02:42:57 pm »
Does anyone know of some HTTP Socket components that I can use for OSX development? Working for windows would be nice too.

Thanks,

Tom

antonio

  • Hero Member
  • *****
  • Posts: 605
RE: HTTP Sockets
« Reply #1 on: September 11, 2007, 07:08:09 pm »
Wait a bit for the wiki.

theo

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1933
RE: HTTP Sockets
« Reply #2 on: September 11, 2007, 07:12:20 pm »
Synapse might work http://synapse.ararat.cz/

Phil

  • Hero Member
  • *****
  • Posts: 2737
Re: RE: HTTP Sockets
« Reply #3 on: September 11, 2007, 09:42:46 pm »
Quote from: "theo"
Synapse might work http://synapse.ararat.cz/


I've used both Synapse and Indy with OS X. Neither will compile as distributed. You need to account for the lack of MSG_NOSIGNAL, which is referenced in both Synapse and Indy. I just added MSG_NOSIGNAL = 0 for now until a more knowledgeable fix comes along.

I've settled on Indy for now on both OS X and Windows. However, there's a nasty FPC bug that can crash your app when it exits:

http://www.freepascal.org/mantis/view.php?id=9402

It's been fixed in 2.3.1 SVN but it's not fixed in the current stable 2.2.x. If you're using 2.2.x just copy the SVN netdb.pas into your project's folder and FPC will compile and use it instead of the buggy netdb unit.

Thanks.

-Phil

tbonejo

  • Jr. Member
  • **
  • Posts: 66
RE: Re: RE: HTTP Sockets
« Reply #4 on: September 12, 2007, 02:08:54 am »
I liked Indy from my delphi days. Is it stable enough to perform well in a commercial app? My app would be grabbing ebay pages and parsing html stuff. I also need to display webpages in a viewer or panel.

thanks,

Tom

Phil

  • Hero Member
  • *****
  • Posts: 2737
Re: RE: Re: RE: HTTP Sockets
« Reply #5 on: September 12, 2007, 10:02:50 pm »
Quote from: "tbonejo"
I liked Indy from my delphi days. Is it stable enough to perform well in a commercial app? My app would be grabbing ebay pages and parsing html stuff. I also need to display webpages in a viewer or panel.


I've only used it with the Web Service Toolkit, but Indy is still included with Delphi so it's probably a good choice to use with Free Pascal too.

Thanks.

-Phil

Hansaplast

  • Hero Member
  • *****
  • Posts: 765
  • Tweaking4All.com
    • Tweaking4All
RE: Re: RE: Re: RE: HTTP Sockets
« Reply #6 on: April 26, 2008, 08:42:17 pm »
Is there any progress on this topic?

I've used Indy a few times with Delphi, but would love to port my applications to Mac OSX and Linux as well.
I currently have two (small) application that grabs HTML pages from the web ... any suggestions?

(I agree; Indy is probably the best choice since it's still being used in Delphi)

 

TinyPortal © 2005-2018