4
votes
Vote UpVote

Creating a TinyUrl from Delphi

The Road to Delphi – The TinyUrl free service convert a long URL to small url, which is useful for example to make twitter posts. to use this service from delphi you must make a request to this link http://tinyurl.com/api-create.php?url=the_url_to_convert_goes_here and the response is the TinyUrl generated check the sample code to get the response program DelphiTinyUrl; {$APPTYPE CONSOLE} uses WinInet, SysUtils; function GetTinyUrl(Url:string):string; const tinyurl = 'http://tinyurl.com/api-create.php?url=%s'; BuffSize = 2048; var hInter : HINTERNET; UrlHandle: HINTERNET; BytesRead: Cardinal; ...
Favorite? Off-Topic? Rodrigo @ 2010-11-28 19:07

Statistics

Visits: 531
Votes: 4
Favorites: 0
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

Daniele Teti
stukelly
Tier777
TOndrej
Subscribe:
Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News

Sponsor

 
Please login or register to use this functionality.
(click on this box to dismiss)