aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes Ajax works fine in HTTP but not in HTTPS in FireFox Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Ajax works fine in HTTP but not in HTTPS in FireFox" Watch "Ajax works fine in HTTP but not in HTTPS in FireFox" New topic
Author

Ajax works fine in HTTP but not in HTTPS in FireFox

Sekku Ramasamy
Greenhorn

Joined: Oct 28, 2010
Posts: 2
When we are directly access the application from Application server(localhost).I am getting the correct response.

This is URL

http://localhost:27110/vcm-ui/request?vui.request.transport=json&vui.response.transport=json&vui.request=[{%22id%22%3A0.8391487769614959%2C%22action.key%22%3A%22message%22%2C%22event%22%3A%22multiple%22%2C%22content%22%3A{%22com.vignette.ui.framework.module.id%22%3A%22task%22%2C%22com.vignette.ui.framework.module.view.mode%22%3A%22table%22%2C%22baseName%22%3A%22com.vignette.ui.vcm.l10n.module.TaskResource%22%2C%22keys%22%3A%22accept.action.label\taccept.action.description\treject.action.label\treject.action.description\tapprove.action.label\tapprove.action.description\tmenu.tour.label\tmenu.tour.description\tmenu.tour.url%22}}%2C]%20HTTP/1.1

Respons
/*{xapi:{metadata:{"user": "?","status": "ok","request": "http://localhost:27110/vcm-ui/request"},container:{"type": "vui","id": "0.8391487769614959",data:[{"type": "vuiError","message": "Current user is not authorized to perform the requested action.","id": "0.8391487769614959","content": "", "end": "---end-marker---"}]}}}*/

When we are trying to access from Webserver(https proxy) by redirecting to Application.I am getting encrypted response.

The URL for Access Webserver is

https://qa2.rpvgn.com/vcm-ui/request?vui.request.transport=json&vui.response.transport=json&vui.request=[{%22id%22%3A0.8391487769614959%2C%22action.key%22%3A%22message%22%2C%22event%22%3A%22multiple%22%2C%22content%22%3A{%22com.vignette.ui.framework.module.id%22%3A%22task%22%2C%22com.vignette.ui.framework.module.view.mode%22%3A%22table%22%2C%22baseName%22%3A%22com.vignette.ui.vcm.l10n.module.TaskResource%22%2C%22keys%22%3A%22accept.action.label\taccept.action.description\treject.action.label\treject.action.description\tapprove.action.label\tapprove.action.description\tmenu.tour.label\tmenu.tour.description\tmenu.tour.url%22}}%2C]%20HTTP/1.1

The Response I am getting is



Code Used for making a Ajax request is



This working fine in IE 6 but not in FireFox and IE 7

Please help in solving it
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19761
    
  20

Moving to our HTML and JavaScript forum.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Did you look at the headers, is it returning the same content type/encoding/etc. Does it work with non https on the same server?

Eric
Sekku Ramasamy
Greenhorn

Joined: Oct 28, 2010
Posts: 2
Hi Eric

We have solved the problem.

Solution is
gzip compression done by web server was not supported by IE7 and FF.
So I had removed the compression, and it worked.

But removing compression may affect the performance.
So I am looking for better solution.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Ajax works fine in HTTP but not in HTTPS in FireFox