Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Does curl support javascript or pac (automated proxy config)?

0
Posted

Does curl support javascript or pac (automated proxy config)?

0

468 469 Many web pages do magic stuff using embedded javascript. Curl and libcurl 470 have no built-in support for that, so it will be treated just like any other 471 contents. 472 473 .pac files are a netscape invention and are sometimes used by organizations 474 to allow them to differentiate which proxies to use. The .pac contents is 475 just a javascript program that gets invoked by the browser and that returns 476 the name of the proxy to connect to. Since curl doesn’t support javascript, 477 it can’t support .pac proxy configuration either. 478 479 Some work-arounds usually suggested to overcome this javascript dependency: 480 481 – Depending on the javascript complexity, write up a script that 482 translates it to another language and execute that. 483 484 – Read the javascript code and rewrite the same logic in another language. 485 486 – Implement a javascript interpreter, people have successfully used the 487 Mozilla javascript engine in the past. 488 489 – Ask your admins to

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123