Ask Your Question
0

sage HTTP request/response

asked 2013-03-05 14:01:40 +0100

Moataz Elmasry gravatar image

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?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2013-03-08 11:38:33 +0100

Ivan Andrus gravatar image

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 not to use python. You won't incur any overhead etc.

edit flag offensive delete link more

Comments

many thnx. I simply used the python http library inside sage and it is working like a charm

Moataz Elmasry gravatar imageMoataz Elmasry ( 2013-04-26 11:06:28 +0100 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2013-03-05 14:01:40 +0100

Seen: 803 times

Last updated: Mar 08 '13