# 308 Permanent redirect

**URL:** <https://community.postman.com/t/308-permanent-redirect/6504>\
**Category:** Help Hub\
**Tags:** tests\
**Created:** [July 12, 2019, 8:49am UTC](https://community.postman.com/t/308-permanent-redirect/6504 "2019-07-12T08:49:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![krissPPIT](https://avatars.discourse-cdn.com/v4/letter/k/d07c76/32.png) [@krissPPIT](https://community.postman.com/u/krissPPIT)\
**Post date:** [July 12, 2019, 8:49am UTC](https://community.postman.com/t/308-permanent-redirect/6504/1 "2019-07-12T08:49:56Z")

</div>

HI there  
I have a problem related to 308 Permanent redirect - status code in my app. I want to upload a file to CrossEngage platform and everything is alright when using a POSTMAN but when I do the same using HttpWebRequest or RestClient on my application I’m getting 308 Permanent redirect - What I’m not doing that POSTMAN is doing ?

My code:  
byte dataBytes = System.IO.File.ReadAllBytes(path);  
string converted = Convert.ToBase64String(dataBytes);

```
        var client = new RestClient(Url+Action);
        client.FollowRedirects = true;
        var request = new RestRequest(Method.GET);            
        request.AddHeader("cache-control", "no-cache");
        request.AddHeader("x-xng-authtoken", AuthToken);
        request.AddHeader("x-xng-apiversion", "2");
        request.AddHeader("content-type", "application/pdf");
        request.AddParameter("application/pdf", converted, ParameterType.RequestBody);            
        IRestResponse response = client.Execute(request);

```

Thanks in advance  
Kriss

---

<div class="post-metadata">

**Author:** ![postman-kyle](https://avatars.discourse-cdn.com/v4/letter/p/47e85d/32.png) [@postman-kyle](https://community.postman.com/u/postman-kyle)\
**Post date:** [July 18, 2019, 7:27pm UTC](https://community.postman.com/t/308-permanent-redirect/6504/2 "2019-07-18T19:27:49Z")

</div>

I’d first check your Postman’s settings, you might have `Automatically Follow Redirects` to _off_

 ![07%20PM](https://us1.discourse-cdn.com/getpostman/original/3X/0/d/0dc4b5e97a5b4d65c6dde4acb582f92094c1cb61.png)

See if that’s set to _off_ and then set it to _on_ and see if it starts to behave the same in your application.

---

<div class="post-metadata">

**Author:** ![krissPPIT](https://avatars.discourse-cdn.com/v4/letter/k/d07c76/32.png) [@krissPPIT](https://community.postman.com/u/krissPPIT)\
**Post date:** [July 18, 2019, 9:02pm UTC](https://community.postman.com/t/308-permanent-redirect/6504/3 "2019-07-18T21:02:35Z")

</div>

Hi Kyle

Thanks for answering me. I have solved my problem already by following redirection from the response.

Thanks again

Best

![logo-small.gif](https://us1.discourse-cdn.com/getpostman/original/3X/0/0/00fe3af2020890e2522066e4a80f171e89ab65bb.gif)

![Softwerker_Logo_181114_klein_72ppi_RGB.jpg](https://us1.discourse-cdn.com/getpostman/original/3X/8/6/86b4c314e4f0af12f8956387efe19910ab98f7b8.jpeg)
