unable do download file from ie11 - download

unable do download file from ie11, when click on download button post request send to the server. I checked in network section the response will come with content of file but in internet explorer 11 download prompt will not appear instead of that if display error page can not display and url will not correct . This program working fine with Mozilla Firefox.
I created a demo program which runs on my local host with same configuration ie11 works fine. but same program I tried to run on my production server tomcat getting same error.

I had this same problem,but incase of PDF's my pdf file was not downloading from IE, in my case also the file was getting downloaded from the Firefox, I just checked the url, there is no such limit to the length of the url but in this I just reduced the length of the url and it worked, but I didn't get what IE does different in this maybe its the server which is handling the request from IE differently or while sending IE is doing something different, just check if this works, reduce the length of the url and try again.

Related

Google Sheets API Java program, works on one machine and not the other - 401 Au

I've got a working basic Java App that uploads some data to a google sheets file of mine.
I uploaded it to a git client, pulled it to my other computer, and it doesn't work on that with a 401
Exception in thread "main" com.google.api.client.auth.oauth2.TokenResponseException: 401 Unauthorized
at com.google.api.client.auth.oauth2.TokenResponseException.from(TokenResponseException.java:105)
at com.google.api.client.auth.oauth2.TokenRequest.executeUnparsed(TokenRequest.java:287)
at com.google.api.client.auth.oauth2.TokenRequest.execute(TokenRequest.java:307)
at com.google.api.client.auth.oauth2.Credential.executeRefreshToken(Credential.java:570)
at com.google.api.client.auth.oauth2.Credential.refreshToken(Credential.java:489)
at com.google.api.client.auth.oauth2.Credential.intercept(Credential.java:217)
at com.google.api.client.http.HttpRequest.execute(HttpRequest.java:868)
at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed(AbstractGoogleClientRequest.java:419)
at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed(AbstractGoogleClientRequest.java:352)
at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.execute(AbstractGoogleClientRequest.java:469)
at App.main(App.java:71)
Any idea what could be different between the two machines? I understand it that if I'm using the same client_secret.json, it should be irrelevant which machine I'm on?
UDPATE 1:
ok, some extra info - i just tried my project at work on my work laptop and it worked fine! On first run it opened a browser window and asked me which google account I wanted to use, I chose the correct one, and that worked. On the laptop I have that didn't work, I wasn't given that option (that I remember) so how can I reset the google account that has been used to authenticate against?
I saw this in my cmd line
Please open the following address in your browser:
https://accounts.google.com/o/oauth2/auth?access_type=offline&client_id=blah-notputtingmyrealid.apps.googleusercontent.com&redirect_uri=http://localhost:42299/Callback&response_type=code&scope=https://www.googleapis.com/auth/spreadsheets
Attempting to open that address in the default browser now...
Since it's working on your previous computer, the issue might be concerning the location of your client_secret.json. If you check the Java Quickstart setup, there's a part where you need to download the JSON file and place it on your working directory. Since, you're on a new machine, that file is now missing.
g. Click the file_download (Download JSON) button to the right of the
client ID.
h. Move this file to your working directory and rename it
client_secret.json.
Or the access token has expired.

Multi part file upload not working in firefox 36.which works fine in other browsers and previous versions of firefox

I am using Ajax calls for transferring file in multi part Post message in 10 mb chunks for every Rest call going to server. It was working fine in other browsers but in latest version of Firefox 36 the ajaxcalls get rejected by the browser. But works fine if I set the chunck size to 4 kb. I cant find root cause. Any help is appreciated.

sending PKPAss to Safari with PHP

All,
I am following a tutorial to get PHP to deliver a pass. I have been using the console to check the logs in XCODE. I have also checked and there is no PHP errors on the local server.
When I browse to the page which should download the pass, I get this on my safari screen on my iPhone.
So it is downloading from the local server, but I cannot see the pass, just the binary code.. Is there anything on iPhone 6/ iOS 8 that I should be checking ?
thanks
Your web server is not correctly set up to serve the file with a MIME type that identifies the .pkpass file as a Passbook pass. More so, your server appears to be using a text or html MIME type that instructs the browser to read the file as text.
See my answer to this question for how to properly configure your server.

Wrong Width in IE in Report Server

Goal:
To make the width of the report to be similiar for Internet Explorer and Firefox in the website in report server (http://myserver/reportserver).
Problem:
Displaying the report in IE, the width is too short and wrong compare to the original size in Firefox.
What webdevelopment code in IE do I need to change to make it similar for Firefox and IE?
Information:
*The report is located in a server and the customer use their client computer to get access to the reports. The user use their own IE browser and type in the URL address that is the server's ipnumber with "reportserver" "(http://myserver01/reportserver)"
*The server's web reader is IE 10. No firefox in the server.
I have found the error.
The code "" is same for FF and IE. In order to make it width for IE you have to change the value into "width: 150%" instead of ""width: 100%;"
The answer is it answering but I still need to return.

Can not Browse any Asp.Net File system website in any browser

I am making asp.net website in my system using web location File System. i try to browse my localhost website but it cannot be browse in any browser(Firefox,chrome etc). after searching error on google i also made changes in LAN setting of browser but still can't get any result.
In Chrome i am receiving following error
"This webpage is not available
The webpage at http://localhost:2625/Website/Default.aspx might be temporarily down or it may have moved permanently to a new web address.
Error 101 (net::ERR_CONNECTION_RESET): Unknown error."
In Firefox i am receiving following error
"The connection was reset
The connection to the server was reset while the page was loading."
How can i resolve this problem ?
i have resolved my problem.
i got help from following link
http://forums.asp.net/t/1437368.aspx

Resources