Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I don't use Catalyst, but the docs for <code>uri_for</code> point to <a href="http://search.cpan.org/dist/Catalyst-Runtime/lib/Catalyst/Request.pm#%24req-%3Ebase" rel="nofollow noreferrer">the request object's <code>base</code> method</a>.</p> <p>I read the source, and found that <code>base</code> is a read/write method. So, you should be able to squeeze <code>$req-&gt;base('https://foo.bar.com/')</code> into your code somewhere to get your https uris.</p> <p><strong>Update:</strong> </p> <p><em>singingfish</em> says that the above advice is incorrect--which wouldn't surprise me at all, it was based on a quick look at TFM. S/He also says that the <code>scheme</code> method should be set instead. I assume s/he is referring the the <strong>uri</strong> object's <code>scheme</code> method.</p> <p>Further searching turned up <a href="http://dev.catalystframework.org/wiki/resources/httpstricks" rel="nofollow noreferrer">HTTPS Tricks on the Catalyst Wiki</a>. It shows an example of setting the scheme on the <strong>uri</strong> objects returned by the <code>uri_for_action</code> method. It looks like you would need to set the scheme on every uri you request, all over your code. So, I can't help but feel that the scheme method may not be the best choice.</p> <p>I also found <a href="http://lists.scsys.co.uk/pipermail/catalyst/2005-September/001689.html" rel="nofollow noreferrer">this thread on the mailing list</a>. Setting <code>base</code> or setting an environment variable are both recommended methods.</p> <p>This gives you several avenues of investigation. Good luck.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload