# \#code

**URL:** https://community.postman.com/tag/code/164.md

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

---

## [How to export an api with an url parameter and use it](https://community.postman.com/t/how-to-export-an-api-with-an-url-parameter-and-use-it/51683)

<div class="topic-metadata">

**Author:** [@aviation-candidate14](https://community.postman.com/u/aviation-candidate14)\
**Replies:** 1\
**Last updated:** [September 13, 2023, 9:33am UTC](https://community.postman.com/t/how-to-export-an-api-with-an-url-parameter-and-use-it/51683 "2023-09-13T09:33:14Z")

</div>

how to export an api with an url parameter and use it in a php file. i didnt work with php and postman before so if you could help me that would mean me a lot.

---

## [Latest RestSharp fails to compile Postman C# generated code](https://community.postman.com/t/latest-restsharp-fails-to-compile-postman-c-generated-code/41442)

<div class="topic-metadata">

**Author:** [@trisyswhatsapp](https://community.postman.com/u/trisyswhatsapp)\
**Replies:** 0\
**Last updated:** [November 24, 2022, 1:03pm UTC](https://community.postman.com/t/latest-restsharp-fails-to-compile-postman-c-generated-code/41442 "2022-11-24T13:03:10Z")

</div>

I reported this issue years ago, and was dismayed to find my own evidence today which confirms that the complaints on GitHub etc… about the Postman C# code generator being incompatible with the latest RestSharp library a…

---

## [Request Works in Postman, but the Generated RestSharp Code Fails](https://community.postman.com/t/request-works-in-postman-but-the-generated-restsharp-code-fails/7251)

<div class="topic-metadata">

**Author:** [@pevans360](https://community.postman.com/u/pevans360)\
**Replies:** 5\
**Last updated:** [November 24, 2022, 12:59pm UTC](https://community.postman.com/t/request-works-in-postman-but-the-generated-restsharp-code-fails/7251 "2022-11-24T12:59:31Z")

</div>

Following request works in the Postman UI (see image below). But the code generated for c# (RestSharp) fails with StatusCode: Unauthorized. The request works in Postman before and after the code fails. Generated code …

---

## [Concatenating responseBodies to transform into a .json file](https://community.postman.com/t/concatenating-responsebodies-to-transform-into-a-json-file/25357)

<div class="topic-metadata">

**Author:** [@jcsacco](https://community.postman.com/u/jcsacco)\
**Replies:** 0\
**Last updated:** [June 30, 2021, 3:48pm UTC](https://community.postman.com/t/concatenating-responsebodies-to-transform-into-a-json-file/25357 "2021-06-30T15:48:11Z")

</div>

My question: I work with an API that gives results in a page format, meaning that if I want to gather all the data, I have to call the GET function X times (x=number of pages). Each page has the same value names and th…

---

## [Help with multipart-formdata - Python Requests code](https://community.postman.com/t/help-with-multipart-formdata-python-requests-code/16213)

<div class="topic-metadata">

**Author:** [@bbourgau](https://community.postman.com/u/bbourgau)\
**Replies:** 1\
**Last updated:** [June 28, 2021, 5:16am UTC](https://community.postman.com/t/help-with-multipart-formdata-python-requests-code/16213 "2021-06-28T05:16:57Z")

</div>

Hi, When I create a form-data POST request with two images, the Postman Request works. However when I select the code for Python - Requests the generated code does not work at all. It’s looking for the boundary marker…

---

## [Retrieve query param value from Location Header in response](https://community.postman.com/t/retrieve-query-param-value-from-location-header-in-response/21148)

<div class="topic-metadata">

**Author:** [@krishnakumar.tce](https://community.postman.com/u/krishnakumar.tce)\
**Replies:** 5\
**Last updated:** [March 9, 2021, 3:18pm UTC](https://community.postman.com/t/retrieve-query-param-value-from-location-header-in-response/21148 "2021-03-09T15:18:17Z")

</div>

I have a 3-legged OAuth setup. The first step returns a redirect with a Location header that has the authorization token (code) as a query parameter. This header looks like follows - Location: https://b7af580a-bc88-4a…

---

## [PHP cURL generated code syntax not escaping double quotes](https://community.postman.com/t/php-curl-generated-code-syntax-not-escaping-double-quotes/21131)

<div class="topic-metadata">

**Author:** [@mcdermottmb](https://community.postman.com/u/mcdermottmb)\
**Replies:** 1\
**Last updated:** [March 8, 2021, 5:10pm UTC](https://community.postman.com/t/php-curl-generated-code-syntax-not-escaping-double-quotes/21131 "2021-03-08T17:10:17Z")

</div>

PHP cURL generated code no longer escapes double quotes. It used to but now it has to be manually updated before using in a PHP script. Is there any way to update the way this code is generated so it includes the prope…

---

## [Code generate for Delphi](https://community.postman.com/t/code-generate-for-delphi/14861)

<div class="topic-metadata">

**Author:** [@HemulGM](https://community.postman.com/u/HemulGM)\
**Replies:** 2\
**Last updated:** [August 10, 2020, 12:49pm UTC](https://community.postman.com/t/code-generate-for-delphi/14861 "2020-08-10T12:49:51Z")

</div>

Is it possible to add code generation for Delphi too? If necessary, I can help with this one.

---

## [How to change all the same selected variables in the test, at one time?](https://community.postman.com/t/how-to-change-all-the-same-selected-variables-in-the-test-at-one-time/1357)

<div class="topic-metadata">

**Author:** [@o.haistruk](https://community.postman.com/u/o.haistruk)\
**Replies:** 2\
**Last updated:** [April 3, 2018, 3:20pm UTC](https://community.postman.com/t/how-to-change-all-the-same-selected-variables-in-the-test-at-one-time/1357 "2018-04-03T15:20:00Z")

</div>

When I select a pice if code, it selects by default all similar pieces in the code. How to change them all at one time, like in some IDE?
