adwaitjoshi Posted June 8, 2014 Share Posted June 8, 2014 I am using the code posted here to do something with a third party software http://www.interworks.com/blogs/jvarner/2012/07/12/proxying-tableau-server-content-using-php-and-trusted-tickets however its utterly frutrating that something as simple as $fullUrl = "http://{$server}/trusted/{$ticket}/{$url}"; returns me the following moOaH6BAKFMGGszd_IQHTvpAhttp://<server>/trusted/1/views/<dashboard>?format=png instead of http://<server>/trusted/moOaH6BAKFMGGszd_IQHTvpA/views/<dashboard>?format=png completely beats me. Any idea why ? Is it something to do with the variable $ticket which has the value of moOaH6BAKFMGGszd_IQHTvpA in this case ? Quote Link to comment Share on other sites More sharing options...
Ch0cu3r Posted June 8, 2014 Share Posted June 8, 2014 if $server is set to <server> and $ticket is set to moOaH6BAKFMGGszd_IQHTvpA and $url is set to <dashboard>?format=png Then the code you posted should resemble this output http://<server>/trusted/moOaH6BAKFMGGszd_IQHTvpA/views/<dashboard>?format=png The output you posted, has the ticket string before the http:// and $ticket has been replaced by 1. It seems you may be echo'ing the output of the curl response rather than capturing the response into a variable. It is hard to tell with the single line of code you posted Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.