I did not debug the code and can't tell you what's wrong but you're missing one thing on p_request, you're not sending the original headers to the sub request (just 'host'). Perhaps that might be originating the block from it.. or you're missing more stuff?
-- Diogo Resende On Wednesday, October 3, 2012 at 9:21 , Thuan le minh wrote: > i think i don't parse json on my code ? > my code is attacted > > On Wednesday, October 3, 2012 2:59:20 PM UTC+7, ryandesign wrote: > > > > On Oct 3, 2012, at 02:47, Thuan le minh <[email protected] (javascript:)> > > wrote: > > > > > i am trying to create caching http proxy server with node.js and i use > > > node-static as middleware for caching module . > > > i tested my app on my browser : localhost:8080/?url=http://google.com, it > > > ran ok . > > > but when i test it with any website that include json content such as : > > > http://application.pedev.lan:8080/abc/ext/oxplorer?content=abc&login=abc&pass=abc&format=json > > > > > > it can not run . > > > > Why can't it run? What error occurs? > > > > Can we see your code anywhere? > > > > > -- > Job Board: http://jobs.nodejs.org/ > Posting guidelines: > https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines > You received this message because you are subscribed to the Google > Groups "nodejs" group. > To post to this group, send email to [email protected] > (mailto:[email protected]) > To unsubscribe from this group, send email to > [email protected] > (mailto:[email protected]) > For more options, visit this group at > http://groups.google.com/group/nodejs?hl=en?hl=en > > Attachments: > - node-proxy.js > -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en
