Jump to content

angie

Member
  • Posts

    5
  • Joined

  • Last visited

Everything posted by angie

  1. Revisited this problem after a year and right now I have a crude fix for it. Created a file .proxy with "proxy_address:port". Then added the following lines to google auto suggest workflow. $lines = file('/Some/path/.proxy',FILE_IGNORE_NEW_LINES); $proxy_options=array(CURLOPT_PROXY => $lines[0]); $orig = "{query}"; $xml = $wf->request( "http://google.com/complete/search?output=toolbar&q=".urlencode( $orig ) ,$proxy_options); The next step is to create a workflow which will toggle proxy on/off by setting the file to proxy or null.
  2. Scouring the net this is the best I came up with http://curl.haxx.se/mail/archive-2002-06/0104.html http://curl.haxx.se/mail/archive-2007-12/0059.html And it all is beyond my current level of expertise with scripting (perl is all I know ). Will still give link 2 a shot and try it some python based workflow. If it doesnt work I will just cross my fingers and hope alfred will support it in next version
  3. Thanks for the reply! Network preferences are set to auto proxy discovery and automatic proxy configuration. I have the .pac file from which i got the proxy server. Currently on VPN to the office network... i tried the curl command in the terminal window curl -I http://google.com gives no output in the window curl with proxy gives this HTTP/1.1 301 Moved Permanently Location: http://www.google.com/ Content-Type: text/html; charset=UTF-8 Date: Mon, 29 Apr 2013 08:06:40 GMT Expires: Wed, 29 May 2013 08:06:40 GMT Cache-Control: public, max-age=2592000 Server: gws X-XSS-Protection: 1; mode=block X-Frame-Options: SAMEORIGIN Content-Length: 219 Proxy-Connection: Keep-Alive Connection: Keep-Alive So I guess its a problem with the curl not getting the proxy settings by default. Do I add the CURLOPT_PROXY option to the curl options? Any other option to go with it?
  4. I need some help here. Its very frustrating that all the nifty workflows dont work when using proxies. I have narrowed down the problem to curl command used in workflows.php which I think is the one that issues requests to remote locations. I tested out the following command curl --proxy www.proxy.server:proxy_port_number -I https://twitter.com which worked. I am not really familiar with php or python or curl commands/options, so can anyone tell me what changes I should do to the workflows.php file for it to work? Also how do I make sure curl does not use the proxy when I'm at home using regular internet. Also as a feature request, can alfred discover and apply proxy settings automatically the way chrome/firefox do?
  5. All the alfred workflows (like google autocomplete, rotten tomatoes, weather), dont work when I'm on office network which has auto proxy discovery set. Is there a way to get around it? Everything works fine when using regular internet at home.
×
×
  • Create New...