That function is meant to be given a command to execute, not a web address.
https://docs.python.org/3/library/subprocess.html#subprocess.check_output <https://docs.python.org/3/library/subprocess.html#subprocess.check_output> If you want to make web requests against another application, use the 'requests' module. http://docs.python-requests.org/en/master/ <http://docs.python-requests.org/en/master/> > On 10 Sep 2018, at 8:00 am, Νίκος Βέργος <[email protected]> wrote: > > I have 3 wsgi scripts listening on 3 locations What i'm trying to run an wsgi > script from within another wsgi script with the following statement. > > > > pdata = subprocess.check_output( 'http://superhost.gr/' + page ) > > > > page = the location of another wsgi app. > > The error i'am getting when for i.e i try to load > http://superhost.gr/clientele > > > > File http://superhost.gr/clientele *NOT* found > > > The other script by itself executes normally but NOT from within my app.py > script. > > Any ideas on how to execute a wsgi app (b) from within a wsgi app(a) and > store the response as html data? > > > -- > You received this message because you are subscribed to the Google Groups > "modwsgi" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected] > <mailto:[email protected]>. > To post to this group, send email to [email protected] > <mailto:[email protected]>. > Visit this group at https://groups.google.com/group/modwsgi > <https://groups.google.com/group/modwsgi>. > For more options, visit https://groups.google.com/d/optout > <https://groups.google.com/d/optout>. -- You received this message because you are subscribed to the Google Groups "modwsgi" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/modwsgi. For more options, visit https://groups.google.com/d/optout.
