# Http Redirect

## 아이템 블록

Http In 아이템 블록을 통해 들어온 요청을 다른 주소로 Redirect 합니다.

<figure><img src="/files/XsCCuotP10hcxnNnecSb" alt=""><figcaption></figcaption></figure>

## 설정 팝업

<figure><img src="/files/9TOcEzMLDFuBW59xfelD" alt=""><figcaption></figcaption></figure>

## 설정 필드

### Redirect URL

Http In 아이템 블록을 통해 들어온 요청을 Redierct 하기 위한 타겟 주소입니다.

### 쿼리 매개 변수

다른 주소로 Redirect 할 때 필요한 쿼리 매개변수를 추가할 수 있습니다.&#x20;

앞에서 설정 된 global/loop/msg 메모리 영역에 값을 지정합니다.

{% hint style="info" %}
쿼리 매게변수에 지정 된 값은 {key:value} 형태의 JSON 값이어야 합니다.

예를들어 msg.queryParams.code = 'somecode' 그리고 msg.queryParams.state = 'online' 와 같이 설정되어 있다면 Redirect 주소는 <mark style="color:blue;">**<https://www.domain.com/?code=somecode\\&state=online>**</mark> 와 같이 전달됩니다.
{% endhint %}

## 프로젝트 구성

Http Redirect 아이템 블록은 Http In 아이템 블록과 항상 쌍으로 구성되어야 합니다. 아래 이미지를 참조해 주세요.

<figure><img src="/files/Ui7qgDxWHnRZDMjfrZHH" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.apidrag.com/base-control/web-service/http-redirect.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
