AnsweredAssumed Answered

accessing web scipts using matlab

Question asked by roeland19 on Jul 2, 2008
Latest reply on Jul 3, 2008 by roeland19

I am trying to acces the web script using matlab. First of all i use a ticket to authenticate myself with the following command
security_ticket = urlread('','get','')

this gives me the ticket in xml format.

security_ticket2 =
<?xml version="1.0" encoding="UTF-8"?>

now i can just copy the ticket to use it later or i can parse the xml code to a string so i can use the string instead of copy pasting it each time.

now when i try to acces a web script where i don't have to input anything i don't get a problem.
in the following piece of code the string ticket contains my ticket.

output = urlread('','get',{'alf_ticket',ticket})

but when i try to acces a web script where i do have to input something like in a search script i get the following.

output = urlread('','get',{'alf_ticket',ticket});
Error downloading URL.

it should give back some json code and when i try it in the browser it works just fine.

is by chance anyone else using matlab to do this ?

thnx in advance.