I want to read plain/text from an Https server. I have tried various codes php and JavaScripts, but to no success. I tried to send a request using Fiddle HTTP Debugging software with modified user-Agent value and I got a response from the server. When I used JavaScript, the browser Firefox and Chrome always change the user-Agent parameter to default agent. I never got anything from the server.
-Send https POST to mydomain.code.com
-User-Agent must be ‘myAgent 1.0’
NOTE: am sending the request from another domain.
What is the best approach for this? Please I need some help here! thanks in anticipation
You won’t be able to get around the cross domain restrictions (see same origin policy), at least on the browser side. You’ll need to use a proxy of some sort. There is a good description along with sample code here.