Support for proxy servers in drupal_http_request() was recently added in #7881: Add support to drupal_http_request() for proxy servers (http not https). The HTTP proxy module provides a simple interface for configuring the proxy settings which were made available.

Being able to quickly modify and test proxy configuration settings is very useful in corporate environments where traffic is heavily filtered and shaped.

Proxy support was only added to Drupal 7, so this module is 7.x only.

Track record

Although I am currently the maintainer and co-maintainer of a number of modules, I have never gone through the project application process to receive the permission(s) required to create full projects.

For examples of my maintainership, standards-adherence, commit style, etc, see:

Resources

Project page

Repository

Reviews of other projects

Projects reviewed to receive review bonus:

Comments

klausi’s picture

Welcome!

You need to set the status to "needs review" if you want to get a review. See http://drupal.org/node/532400

We are currently quite busy with all the project applications and I can only review projects with a review bonus. Please help me reviewing and I'll take a look at your project right away :-)

devin carlson’s picture

Status: Active » Needs review

Thanks for the information, I'll try to dedicate some time towards reviewing other projects!

vensires’s picture

The only issue I can find right now is that most of the code exceeds the 80 characters-per-line limit, that will certainly hit an error in the PARreview.

dSero’s picture

Status: Needs review » Needs work

Hi Devin,

It is written in a high standard as well.

Please notice two minor issues that should be addressed:
1. As vensires suggested, you should take a look at the automated report. There are some minor issues to take care of: http://ventral.org/pareview/httpgitdrupalorgsandboxdevincarlson1797030git
2. http_proxy_menu() uses string w/o locaulization. You should use $t = get_t() and $t('')

Greet work,

Moshe Kaplan
dSero. The Anti AdBlock Creators

sreynen’s picture

dSero, can you explain #2 more? The hook_menu documentation defined both title and description as untranslated text, which seems to be what http_proxy_menu() is doing so I'm not sure what you're suggesting should change here.

If #2 isn't actually a problem, nothing in the automated review is a blocker, so I don't think this this should be "needs work."

Drave Robber’s picture

Status: Needs work » Reviewed & tested by the community

Saving an empty string as the port number can break the operation as drupal_http_request() expects it to be either a number or not set. I'd suggest adding an element validator and amending the description so that someone who has cleared the field can restore at least the default value:

  $form['proxy_port'] = array(
    '#type' => 'textfield',
    '#title' => t('Port'),
    '#default_value' => variable_get('proxy_port', 8080),
    '#element_validate' => array('element_validate_integer_positive'),
    '#description' => t('The port number used by the proxy server for client connections (default: 8080).'),
  );

(there might of course be other ways to deal with this)

I also notice Chrome has an annoying tendency to prefill empty username and password fields with my credentials for the site itself, but there's no easy fix for that, and creating complex workarounds because of one not very smart browser isn't really the way to go.

Otherwise, it looks all good to me. There's not much code in this project, but as far as I've seen Devin's code in other modules, it was good, too.

devin carlson’s picture

devin carlson’s picture

Issue tags: +PAreview: review bonus

Adding review bonus tag.

klausi’s picture

Status: Reviewed & tested by the community » Fixed

Although this module on its own is a bit short to approve you your other work speaks for itself.

Thanks for your contribution, Devin Carlson!

I updated your account to let you promote this to a full project and also create new projects as either a sandbox or a "full" project.

Here are some recommended readings to help with excellent maintainership:

You can find lots more contributors chatting on IRC in #drupal-contribute. So, come hang out and get involved!

Thanks, also, for your patience with the review process. Anyone is welcome to participate in the review process. Please consider reviewing other projects that are pending review. I encourage you to learn more about that process and join the group of reviewers.

Thanks to the dedicated reviewer(s) as well.

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary: View changes

Added reviewed projects for review bonus.