Ask Your Question
0

sage HTTP request/response

asked 12 years ago

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?

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
1

answered 12 years ago

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.

Preview: (hide)
link

Comments

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

Moataz Elmasry gravatar imageMoataz Elmasry ( 11 years ago )

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: 12 years ago

Seen: 946 times

Last updated: Mar 08 '13