Indirect http streaming

DVBLink Remote API clients and tools

Re: Indirect http streaming

Postby tommer » Sat Jan 17, 2015 8:47 pm

Just upgraded to version 5.1.0 from 4 something.

And now my app is not functioning... :(

The message i\m getting is "connection timed out" from the app posted above...

Any changes?
Attachments
dvblink-log-20150117-2041.zip
(7.41 KiB) Downloaded 112 times
tommer
 
Posts: 18
Joined: Sun Feb 06, 2011 11:18 pm


Re: Indirect http streaming

Postby tommer » Sun Jan 18, 2015 1:06 am

This is the code Im using to download :
Code: Select all
var
  url:string;
  data: TIdMultiPartFormDataStream;
  server : TIDHttp;

begin
  data := TIdMultiPartFormDataStream.Create;
  server := TIDHttp.Create(nil);
  server.HandleRedirects := true;
  server.ReadTimeout := 5000;
  data.AddFormField('command','get_channels');
  data.AddFormField('xml_param',
  '<?xml version="1.0" encoding="utf-8" ?> <channels xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.dvblogic.com" />');
  server.Request.BasicAuthentication := true;
  server.Request.Username := 'user';
  server.Request.Password := 'admin';
  server.Request.ContentType := 'application/x-www-form-urlencoded';
  url:='http://'+ serverURL + ':8080/cs/';
  (channelsXML as IXMLDocumentAccess).DOMPersist.loadxml(server.Post(url,data));     //Fails here at post...
  data.Free;
  server.Free;
end;
tommer
 
Posts: 18
Joined: Sun Feb 06, 2011 11:18 pm

Re: Indirect http streaming

Postby tommer » Sun Jan 18, 2015 8:26 am

Found it, port was changed...
tommer
 
Posts: 18
Joined: Sun Feb 06, 2011 11:18 pm

Previous

Return to Development corner

Who is online

Users browsing this forum: No registered users and 2 guests