# Getting 404 for http call

**URL:** <https://techcommunity.softwareag.com/t/getting-404-for-http-call/100377>\
**Category:** Forum\
**Tags:** mobile\
**Created:** [February 23, 2012, 11:25pm UTC](https://techcommunity.softwareag.com/t/getting-404-for-http-call/100377 "2012-02-23T23:25:42Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sunny\_Bansal1](https://avatars.discourse-cdn.com/v4/letter/s/ec9cab/32.png) [@Sunny\_Bansal1](https://techcommunity.softwareag.com/u/Sunny_Bansal1)\
**Post date:** [February 23, 2012, 11:25pm UTC](https://techcommunity.softwareag.com/t/getting-404-for-http-call/100377/1 "2012-02-23T23:25:42Z")

</div>

Hi,

I am trying to make http call from Mobile application. I am solving Exercise 5 in , where we make http call.

After clicking on ‘Login’, I am getting pop up with ‘A Network error has occurred’ and connection response I am getting as ‘404’.

But if I change the url to ‘[http://google.com](http://google.com)’ I am getting below pop-up with connection response as 200.

Any Idea why I am getting 404 for ‘[http://www.bedrockdev.com/tutorials/nuiexercise/submit\_cols.php](http://www.bedrockdev.com/tutorials/nuiexercise/submit_cols.php)’ url ?

Regards

Sunny

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [February 23, 2012, 11:32pm UTC](https://techcommunity.softwareag.com/t/getting-404-for-http-call/100377/2 "2012-02-23T23:32:38Z")

</div>

Hi Sunny,

Can you reach it from your standard browser? I just tried the NativeUIExercise app here and it seems to be working okay.

Regards,

Nick.

---

<div class="post-metadata">

**Author:** ![Sunny\_Bansal1](https://avatars.discourse-cdn.com/v4/letter/s/ec9cab/32.png) [@Sunny\_Bansal1](https://techcommunity.softwareag.com/u/Sunny_Bansal1)\
**Post date:** [February 24, 2012, 7:15am UTC](https://techcommunity.softwareag.com/t/getting-404-for-http-call/100377/3 "2012-02-24T07:15:32Z")

</div>

HI Nick,

Yes, I can reach it from my browser.

Regards

Sunny

---

<div class="post-metadata">

**Author:** ![Dave\_Pemberton](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/dave_pemberton/32/317_2.png) [@Dave\_Pemberton](https://techcommunity.softwareag.com/u/Dave_Pemberton)\
**Post date:** [February 24, 2012, 1:14pm UTC](https://techcommunity.softwareag.com/t/getting-404-for-http-call/100377/4 "2012-02-24T13:14:58Z")

</div>

It’s odd that you can reach it from your browser, but you’re getting a 404 from your mobile app.

Are you sure it’s a 404 status (page not found)?

Can you confirm the URL is right in the code of your app?

You could always use tcptrace.exe ([http://www.pocketsoap.com/tcpTrace/tcpTrace081.zip](http://www.pocketsoap.com/tcpTrace/tcpTrace081.zip)) and route through this so that you can see the request and response, i.e.

This might give you more of a clue as to what is going wrong.

Kind regards

Dave

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [February 24, 2012, 11:09pm UTC](https://techcommunity.softwareag.com/t/getting-404-for-http-call/100377/5 "2012-02-24T23:09:02Z")

</div>

Hi Sunny,

Also, have you tried the same classic steps as you would from a PC? Try hitting Google, Amazon or another common server that you know? Try using the direct IP address rather than relying on DNS? Also, try hitting the URL through the browser on your device?

Spencer

---

<div class="post-metadata">

**Author:** ![Sunny\_Bansal1](https://avatars.discourse-cdn.com/v4/letter/s/ec9cab/32.png) [@Sunny\_Bansal1](https://techcommunity.softwareag.com/u/Sunny_Bansal1)\
**Post date:** [February 26, 2012, 12:30am UTC](https://techcommunity.softwareag.com/t/getting-404-for-http-call/100377/6 "2012-02-26T00:30:11Z")

</div>

Hi All,

Thanks a lot for your response. But below are my findings:-

1. 

```
  I deployed Exercise 5 to Android emulator and as well as on my Android based Samsung mobile phone. Everything worked fine.

```

2. 

```
  When I ran it with Phoney then it gave me 404 error code. I used 'TCPMon' to route my requests and it worked fine then. (I have no idea why this is happening?)

```

Regards

Sunny

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 3:01pm UTC](https://techcommunity.softwareag.com/t/getting-404-for-http-call/100377/7 "2021-04-02T15:01:53Z")

</div>


