ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Fri, 26 Apr 2013 11:06:28 +0200sage HTTP request/responsehttps://ask.sagemath.org/question/9882/sage-http-requestresponse/Hello
I would like to do some math in sage then be able to communicate my answer to a php server using post/get etc...
I understand that it is possible to use sage functions inside the sage python shell and do everything else in python.
My concrete question is whether it is possible using only native sage (no python) to do POST/GET communications? Tue, 05 Mar 2013 14:01:40 +0100https://ask.sagemath.org/question/9882/sage-http-requestresponse/Answer by Ivan Andrus for <p>Hello</p>
<p>I would like to do some math in sage then be able to communicate my answer to a php server using post/get etc...</p>
<p>I understand that it is possible to use sage functions inside the sage python shell and do everything else in python.
My concrete question is whether it is possible using only native sage (no python) to do POST/GET communications? </p>
https://ask.sagemath.org/question/9882/sage-http-requestresponse/?answer=14637#post-id-14637Sage is python, so yes and no. :-) Basically Sage is a big python library so in a sage script you can import any python module you want. In other words, there is no reason *not* to use python. You won't incur any overhead etc.Fri, 08 Mar 2013 11:38:33 +0100https://ask.sagemath.org/question/9882/sage-http-requestresponse/?answer=14637#post-id-14637Comment by Moataz Elmasry for <p>Sage is python, so yes and no. :-) Basically Sage is a big python library so in a sage script you can import any python module you want. In other words, there is no reason <em>not</em> to use python. You won't incur any overhead etc.</p>
https://ask.sagemath.org/question/9882/sage-http-requestresponse/?comment=17803#post-id-17803many thnx. I simply used the python http library inside sage and it is working like a charmFri, 26 Apr 2013 11:06:28 +0200https://ask.sagemath.org/question/9882/sage-http-requestresponse/?comment=17803#post-id-17803