# HELP, how to get contact with experts?

**URL:** <https://discuss.python.org/t/help-how-to-get-contact-with-experts/24634>\
**Category:** Python Help\
**Created:** [March 9, 2023, 10:11am UTC](https://discuss.python.org/t/help-how-to-get-contact-with-experts/24634 "2023-03-09T10:11:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pejamide](https://avatars.discourse-cdn.com/v4/letter/p/f07891/32.png) [@Pejamide](https://discuss.python.org/u/Pejamide)\
**Post date:** [March 9, 2023, 10:11am UTC](https://discuss.python.org/t/help-how-to-get-contact-with-experts/24634/1 "2023-03-09T10:11:59Z")

</div>

Now I am very desperate, because for almost 3 months no one can help me to replace the discouraged function ‘cgi.FieldStorage’.

I want to read the requested arguments in the function os.environ(‘REQUEST\_MODE’) = ‘POST’, but I don’t know where to get them from where to get them from.

Would like to have a clear example of this. And well without using interface programs like wsig, flags and django. I am using Windows 11, Apache from XAMPP (version 7.4.33) and Python 3.11.

What should I do now? Do you perhaps know a particular person who can solve this important problem?

At your request, I can send you two almost working files (Request.htm and getpost.py).

---

<div class="post-metadata">

**Author:** ![cameron](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/cameron/32/2658_2.png) [@cameron](https://discuss.python.org/u/cameron)\
**Post date:** [March 9, 2023, 10:33pm UTC](https://discuss.python.org/t/help-how-to-get-contact-with-experts/24634/2 "2023-03-09T22:33:21Z")

</div>

> Now I am very desperate, because for almost 3 months no one can help me  
> to replace the discouraged function ‘cgi.FieldStorage’.

It’s a class, not a function.

The entire _cgi_ module is deprecated and going away in Python 3.13. So  
your desperation is somewhat warranted (though you’ve always got the  
option of just sticking with it and a Python which provides it, which  
will include 3.12).

The long term (or medium term, depending on your situation) solution is  
to leave the Python stdlib `cgi` module _entirely_. Have you read  
PEP594? [PEP 594 – Removing dead batteries from the standard library | peps.python.org](https://peps.python.org/pep-0594/#cgi)

which admittedly _does_ say “FieldStorage/MiniFieldStorage has no direct  
replacement, but can typically be replaced by using multipart (for POST  
and PUT requests) or urllib.parse.parse\_qsl (for GET and HEAD  
requests)”. The suggestions revolve around using the stuff in the  
stdlib, which basicly means that you should roll your own or use a third  
party library.

> I want to read the requested arguments in the function  
> os.environ(‘REQUEST\_MODE’) = ‘POST’, but I don’t know where to get them  
> from where to get them from.

You can’t just directly consult `os.environ('REQUEST_MODE')`?

But this depends on the module you’re using to implement CGI.

> Would like to have a clear example of this. And well without using interface programs like wsig, flags and django. I am using Windows 11, Apache from XAMPP (version 7.4.33) and Python 3.11.

So you’re wanting basic Python equivalent to `FieldStorage`? I accept  
that Django is a huge framework but is `wsgi`?

> What should I do now? Do you perhaps know a particular person who can  
> solve this important problem?

I’m not that person unfortunately.

I think my (naive) suggestion would be find an alternative CGI module.  
Have you looked at: [Search results · PyPI](https://pypi.org/search/?q=cgi&o=)  
for alternatives. I do not know enough to recommend (or reject) any of  
them. Personally I would not waste my time on any which don’t have at  
least a decent README on their PyPI page.

Maybe someone can point you at a forum or mailing list for Python CGI  
users.

Good luck,  
Cameron Simpson [cs@cskk.id.au](mailto:cs@cskk.id.au)
