error getting http web response in windows phone app - windows-phone-7

I am developing a windows phone app.I am sending parameters[POST] to a server.There is no response from server.I found that the error is "error getting http web response".Why is this problem occuring?
There is a response from server , when I send parameters and check response with the help of "Postman" plugin for chrome .

I use following 2 approaches how to troubleshoot such problems.
Set up the debugger so it will break on .NET exceptions. Most likely, you'll stop on a WebException. In the debugger you'll see a lot of exception's properties, containing more information on what has failed and why.
Install Wireshark, capture your Internet-facing NIC, run your app in the simulator, observe your app’s network traffic (type HTTP in filter, press Enter, then right-click on packets and select “Follow TCP stream”). Most likely, you'll see some HTTP error code in the response from your server.
P.S. Postman plugin for chrome / opera's built-in dragonfly / IE's built-in developer tools are rarely useful in such cases. There're too many differences between desktop and mobile browsers. Even worse, many web servers usually send different things to mobile clients.

Related

Using a third party Windows Application, Fiddler Classic's proxy changes, "click to reenable" capturing. Are any requests getting by unnoticed?

I recently began using Fiddler to capture requests from a windows application that I believe is sending malevolent requests. This said application actually has a browser extension for both Chrome and Microsoft Edge. However, only on the Windows Application does Fiddler gives me a yellow pop up: "The System proxy was changed, click to reenable Fiddler capture." This happens specifically when the App begins running and the user logs in.
An example is seen on here: Fiddler not capturing traffic. Proxy settings keep getting changed
I also notice in my windows machine network proxy settings that the App automatically checks "use a setup script" and provides a link to their proxy script.
On my machine, I clearly still am seeing many requests after clicking the yellow pop up. I also am still seeing many requests called by this App. However, I am worried that there could be an instance where the App is clearly able to send requests that it can hide from Fiddler, and only let Fiddler see the requests it wants it to.
The reason I believe this is that Fiddler is a proxy, and the App is yet another proxy. Fiddler doesn't know that it's intercepting a network's traffic through the App's proxy. So Fiddler wouldn't know if it's not hearing everything, and neither would I.
Is this a realistic fear?
If so, where can I find some more information on what is happening, and how to bypass it?
If not, that's all I need to know.

Fiddler on Windows 10: All Captured HTTPS Traffic Dies

I've had a problem with Fiddler ever since my machine was upgraded from Windows 7 to Windows 10. If I configure Fiddler to decrypt HTTPS traffic, any traffic it captures is, for lack of a better word, killed.
For example, if I visit the (HTTPS) page that documents configuring HTTPS decryption, without Fiddler, I see it as normal:
However, once I begin capturing traffic, and reload the page, I get this:
All of the responses feature this same exception message:
I only use Fiddler occasionally, when I need to see what's going into and out of my apps. I could've sworn I was able to do this with HTTPS before migrating to Windows 10. I'm not sure what changed, but Fiddler has become fairly useless to me now that all the traffic it captures fails. Any help would be appreciated.

JMeter : 500 Internal server error (calling API)

Hi Guys does anyone know about 500 internal server error when calling API?
I have an application where one of the functionality gets the data from API
so, i am doing jmeter perfomance tessting on the functionality
1) I recorded scripts using the jmeter proxy (Https recorder)
2) i added the listner
3) ran the script with jus tone thread
I saw 500 Internal server error in Response (please click the below link to see the error screenshot
error screenshot
Is something related to the api server calling using proxy or its problem with my script ?
Please tell any solutions how to do the performance testing on this scenario ?
Your question doesn't have enough information to figure out the cause of the failure so I can only give a piece of general advice:
Capture the request send to the endpoint by the real browser, you can use browser developer tools or external sniffer tool like Wireshark or Fiddler
Do the same for JMeter, either inspect request using View Results Tree listener or the aforementioned sniffer tools
Given requests are the same (apart from dynamic values which need to be correlated or parameterized) you should be getting the same response

Can changing user agent to android in jmeter recorded test send traffic from android devices even if no emulator is installed in my laptop?

For load testing from different browser do we need to have all browser version on host machine or user agent change in existing script will work?
JMeter acts on protocol level, it builds HTTP requests using Java code and Apache HTTPClient libraries by default.
If application you're trying to test logic differs depending on browser you can mimic different browsers by sending the relevant User-Agent header via HTTP Header Manager.
Also consider the following settings:
configure your HTTP Request samplers to:
Retrieve all embedded resources
Use concurrent pool of 4-6 threads for this
This way you will be able to replicate browser behaviour when it comes to working with images, CSS files, JavaScript files, etc.
add HTTP Cache Manager to represent browser cache
add HTTP Cookie Manager to mimic simulate browser cookies, deal with cookie-based authentication, represent sessions, etc.
Check out How To Make JMeter Behave More Like A Real Browser guide for more detailed explanation of the above recommendations.
No.
A web-browser uses User-Agent to tell a server what kind of Browser and Operating System it uses. According to Wikipedia:
This allows the web site to customize content for the capabilities of a particular device
If you recorded your script with Chrome, JMeter would tell the server it was Chrome, and the server would respond to JMeter as if it were Chrome. JMeter, however, does not actually user Chrome in any way. Similarly, if you were to change you User-Agent to Android, the server would just respond to JMeter as if it were an Android device.

IE 10 Websocket Error which bypass proxy server in Meteor project

I use IE 10 to run Meteor project with IP Address but it error in console log
"SCRIPT12008: WebSocket Error: Incorrect HTTP response. Status code 403, Forbidden"
I test uncheck "Use a proxy server" in Internet Option it work, but my office must use proxy server.
How i cant fix this problem ?
Thank you every much
Your web proxy must support websockets to use them. Meteor will automatically fall back to long polling over http for cases like this. You can still use everything as normal but it'll take a bit longer to load (its very slight).
This error comes about because meteor is trying to use websockets and if it fails it falls back to long polling.
If you know you always want to use XHR/Longpolling without trying websockets start meteor with DISABLE_WEBSOCKETS as an environment variable

Resources