Cross Domain http get request... Do I need Proxy?
-
Hi, I just trying to get a result from a http get request to another domain webpage. Here is my javascript funtion for the request:
function pegaCEP() { wRequest.set\_url('http://cep.republicavirtual.com.br/web\_cep.php?cep=13026075'); wRequest.set\_httpVerb("GET"); wRequest.add\_completed(completed); wRequest.invoke(); }
If I use set_url for a webpage in the same site, it works fine, otherwise it cames blank (not denied, just empty, no error). I was looking around and saw something about proxy... Do I need proxy here? If so, can you tell how to do it? If not, is there any web.config solution or something?
Thanks, Dirso
-
Hi, I just trying to get a result from a http get request to another domain webpage. Here is my javascript funtion for the request:
function pegaCEP() { wRequest.set\_url('http://cep.republicavirtual.com.br/web\_cep.php?cep=13026075'); wRequest.set\_httpVerb("GET"); wRequest.add\_completed(completed); wRequest.invoke(); }
If I use set_url for a webpage in the same site, it works fine, otherwise it cames blank (not denied, just empty, no error). I was looking around and saw something about proxy... Do I need proxy here? If so, can you tell how to do it? If not, is there any web.config solution or something?
Thanks, Dirso
Here[^] is a blog post on the subject.
Navaneeth How to use google | Ask smart questions
-
Hi, I just trying to get a result from a http get request to another domain webpage. Here is my javascript funtion for the request:
function pegaCEP() { wRequest.set\_url('http://cep.republicavirtual.com.br/web\_cep.php?cep=13026075'); wRequest.set\_httpVerb("GET"); wRequest.add\_completed(completed); wRequest.invoke(); }
If I use set_url for a webpage in the same site, it works fine, otherwise it cames blank (not denied, just empty, no error). I was looking around and saw something about proxy... Do I need proxy here? If so, can you tell how to do it? If not, is there any web.config solution or something?
Thanks, Dirso
Have you checked wRequest.status? If it is 200 then it is OK. Else, you got error.
Castle Rider
What if I freeze??? Don't forget to breath...
My: Website | Yahoo Group | Blog Spot
-
Have you checked wRequest.status? If it is 200 then it is OK. Else, you got error.
Castle Rider
What if I freeze??? Don't forget to breath...
My: Website | Yahoo Group | Blog Spot
-
Hi, I just trying to get a result from a http get request to another domain webpage. Here is my javascript funtion for the request:
function pegaCEP() { wRequest.set\_url('http://cep.republicavirtual.com.br/web\_cep.php?cep=13026075'); wRequest.set\_httpVerb("GET"); wRequest.add\_completed(completed); wRequest.invoke(); }
If I use set_url for a webpage in the same site, it works fine, otherwise it cames blank (not denied, just empty, no error). I was looking around and saw something about proxy... Do I need proxy here? If so, can you tell how to do it? If not, is there any web.config solution or something?
Thanks, Dirso