# \#python

**URL:** https://community.postman.com/tag/python/182.md

[Latest](https://community.postman.com/latest.md) · [Categories](https://community.postman.com/categories.md) · [Tags](https://community.postman.com/tags.md)

---

## [Python requests to Javascript fetch?](https://community.postman.com/t/python-requests-to-javascript-fetch/55511)

<div class="topic-metadata">

**Author:** [@sashimikid](https://community.postman.com/u/sashimikid)\
**Replies:** 1\
**Last updated:** [December 11, 2023, 11:12am UTC](https://community.postman.com/t/python-requests-to-javascript-fetch/55511 "2023-12-11T11:12:34Z")

</div>

I’m trying to translate this working Python 3.x code, that uses Python’s “requests” library, into Javascript ES6 code that uses 'fetch", but I cannot seem to replicate the request using Javascript. The problem seems to…

---

## [Postman \[GET: url\] Request Returning 200 OK; Python 'requests.get(url)' returning 403 Forbidden](https://community.postman.com/t/postman-get-url-request-returning-200-ok-python-requests-get-url-returning-403-forbidden/2268)

<div class="topic-metadata">

**Author:** [@karndalmia](https://community.postman.com/u/karndalmia)\
**Replies:** 2\
**Last updated:** [November 3, 2023, 12:42am UTC](https://community.postman.com/t/postman-get-url-request-returning-200-ok-python-requests-get-url-returning-403-forbidden/2268 "2023-11-03T00:42:37Z")

</div>

Hello, When running a Postman GET Request on website ‘Reata Pharmaceuticals Inc. - About Us’ using no authentication, I get a full HTML payload. However, when using Python’s requests or http.client, I get a 403 forbidde…

---

## [Flask - The method is not allowed for the requested URL](https://community.postman.com/t/flask-the-method-is-not-allowed-for-the-requested-url/20086)

<div class="topic-metadata">

**Author:** [@nsahn](https://community.postman.com/u/nsahn)\
**Replies:** 3\
**Last updated:** [October 17, 2023, 9:37pm UTC](https://community.postman.com/t/flask-the-method-is-not-allowed-for-the-requested-url/20086 "2023-10-17T21:37:06Z")

</div>

Hello, I’m a student and I’ve just started with the POSTMAN application. I’m trying to set up a python server using Flask so that I can create an API to share the results of home automation experiments (e.g. arduino). U…

---

## [Why am I not able to see the values that was posted in form](https://community.postman.com/t/why-am-i-not-able-to-see-the-values-that-was-posted-in-form/52114)

<div class="topic-metadata">

**Author:** [@lunar-module-sagani1](https://community.postman.com/u/lunar-module-sagani1)\
**Replies:** 7\
**Last updated:** [September 22, 2023, 9:04am UTC](https://community.postman.com/t/why-am-i-not-able-to-see-the-values-that-was-posted-in-form/52114 "2023-09-22T09:04:33Z")

</div>

This is my code # import main Flask class and request object from email.mime import application from flask import Flask, request # create the Flask app application=Flask(\_\_name\_\_) # allow both GET and POST requests …

---

## [Creating APIs with Flask and testing in Postman](https://community.postman.com/t/creating-apis-with-flask-and-testing-in-postman/50204)

<div class="topic-metadata">

**Author:** [@terieyenike](https://community.postman.com/u/terieyenike)\
**Replies:** 0\
**Last updated:** [August 2, 2023, 5:51pm UTC](https://community.postman.com/t/creating-apis-with-flask-and-testing-in-postman/50204 "2023-08-02T17:51:13Z")

</div>

For this post, I will document my process of building APIs using the Python Flask framework and testing its endpoints using Postman. Article link: The talk for this particular session can be found using the link below…

---

## [How to filter users in OKTA using their email and check if they already have the application they are requesting](https://community.postman.com/t/how-to-filter-users-in-okta-using-their-email-and-check-if-they-already-have-the-application-they-are-requesting/44588)

<div class="topic-metadata">

**Author:** [@navigation-pilot-869](https://community.postman.com/u/navigation-pilot-869)\
**Replies:** 0\
**Last updated:** [March 1, 2023, 1:53pm UTC](https://community.postman.com/t/how-to-filter-users-in-okta-using-their-email-and-check-if-they-already-have-the-application-they-are-requesting/44588 "2023-03-01T13:53:50Z")

</div>

Hello, anyone who can help me with Python scripts. I need to validate if the user is already existing in OKTA and if they are existing, i need to validate if a certain application (ex. oracle) is already assigned to them…

---

## [How to refresh my token with Python](https://community.postman.com/t/how-to-refresh-my-token-with-python/38708)

<div class="topic-metadata">

**Author:** [@joint-operations-op4](https://community.postman.com/u/joint-operations-op4)\
**Replies:** 1\
**Last updated:** [September 9, 2022, 9:11pm UTC](https://community.postman.com/t/how-to-refresh-my-token-with-python/38708 "2022-09-09T21:11:36Z")

</div>

Hey. I want to generate a new access token, using Python because my authorization expires in a few minutes and it’s not intelligent every time I click “get new access token”. Is there a code for this?

---

## [Postman Pre-Request Script to Read Variables from CSV file and Append to JSON Body](https://community.postman.com/t/postman-pre-request-script-to-read-variables-from-csv-file-and-append-to-json-body/36603)

<div class="topic-metadata">

**Author:** [@evidence8321](https://community.postman.com/u/evidence8321)\
**Replies:** 6\
**Last updated:** [June 28, 2022, 12:46am UTC](https://community.postman.com/t/postman-pre-request-script-to-read-variables-from-csv-file-and-append-to-json-body/36603 "2022-06-28T00:46:06Z")

</div>

I have a JSON body with template to pass to an API endpoint in Postman/Newman as follows: { "total": \[ { "var1a": "ABCDE", "var1b": { "var2a": "http://url/site/{{yyyy}}/{{mmdd}}/{{yyyymmdd}}.zi…

---

## [Post requests works on postman but not on python3](https://community.postman.com/t/post-requests-works-on-postman-but-not-on-python3/32525)

<div class="topic-metadata">

**Author:** [@sorowerhossan01](https://community.postman.com/u/sorowerhossan01)\
**Replies:** 0\
**Last updated:** [February 12, 2022, 11:10am UTC](https://community.postman.com/t/post-requests-works-on-postman-but-not-on-python3/32525 "2022-02-12T11:10:18Z")

</div>

I sent a post requests using postman in this URL: my form-data was: u: https://www.amazon.de/sp?marketplaceID=A1PA6795UKMFR9&seller=A2VCC4LLAIPFLC&ref=dp\_merchant\_link The output was 200. Everything is fine. But the …

---

## [How to filter response if the values occurs in a set of values?](https://community.postman.com/t/how-to-filter-response-if-the-values-occurs-in-a-set-of-values/29141)

<div class="topic-metadata">

**Author:** [@andalusia20](https://community.postman.com/u/andalusia20)\
**Replies:** 0\
**Last updated:** [October 27, 2021, 11:16am UTC](https://community.postman.com/t/how-to-filter-response-if-the-values-occurs-in-a-set-of-values/29141 "2021-10-27T11:16:40Z")

</div>

My question: I have a list of sampleId’s named sampleid\_list , now I want to do a requests and I only want to get the SampleId if that SampleId occurs in sampleid\_list Details (like screenshots):

---

## [Sent token based request to API](https://community.postman.com/t/sent-token-based-request-to-api/13356)

<div class="topic-metadata">

**Author:** [@yovell04](https://community.postman.com/u/yovell04)\
**Replies:** 1\
**Last updated:** [June 13, 2020, 3:33am UTC](https://community.postman.com/t/sent-token-based-request-to-api/13356 "2020-06-13T03:33:49Z")

</div>

I have a Django rest framework with a simple token-based auth. I’m getting the token key but I can’t for the life of me make a request with it to the API. This is my request. Just for completeness, the key: I’ve …

---

## [GET request working on Postman but not code on Terminal](https://community.postman.com/t/get-request-working-on-postman-but-not-code-on-terminal/12087)

<div class="topic-metadata">

**Author:** [@kumart654](https://community.postman.com/u/kumart654)\
**Replies:** 0\
**Last updated:** [April 20, 2020, 9:47pm UTC](https://community.postman.com/t/get-request-working-on-postman-but-not-code-on-terminal/12087 "2020-04-20T21:47:38Z")

</div>

I am running a GET on Postman and worked fine with Status 200 ok, but when I pick up the code from Postman and running the Curl/Python on my Mac OS terminal it through a 401 error, can you please help me fix the issue. c…

---

## [Capture HTTP request made by python API client](https://community.postman.com/t/capture-http-request-made-by-python-api-client/1890)

<div class="topic-metadata">

**Author:** [@shubhamdhama](https://community.postman.com/u/shubhamdhama)\
**Replies:** 0\
**Last updated:** [June 15, 2018, 4:57pm UTC](https://community.postman.com/t/capture-http-request-made-by-python-api-client/1890 "2018-06-15T16:57:55Z")

</div>

Hey there I’m working with Asana Python API client and I want to know how to capture the HTTP request made by it using Postman. I was expecting this to be as easy as using hookbin/requestbin but it seems too hard for me.…
