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
- git clone --recursive --branch 7.x-1.x http://git.drupal.org/sandbox/DevinCarlson/1797030.git http_proxy
Reviews of other projects
Projects reviewed to receive review bonus:
- Hupso Social Share Buttons - http://drupal.org/node/1808408#comment-6721060
- Temporarily Block Users - http://drupal.org/node/1068972#comment-6721124
- PDF using mPDF - http://drupal.org/node/1822638#comment-6721224
Comments
Comment #1
klausiWelcome!
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 :-)
Comment #2
devin carlson commentedThanks for the information, I'll try to dedicate some time towards reviewing other projects!
Comment #3
vensiresThe 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.
Comment #4
dSero commentedHi 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
Comment #5
sreynen commenteddSero, 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."
Comment #6
Drave Robber commentedSaving 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:(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.
Comment #7
devin carlson commentedThanks for the review Drave Robber!
The coding standards issues have been fixed with #1812260: Document parameter and return value types and #1812246: Make README.txt pass coder review. See http://ventral.org/pareview/httpgitdrupalorgsandboxdevincarlson1797030git.
I've also added validation to the proxy port number #1814290: Validate that the proxy port is a positive integer.
Comment #8
devin carlson commentedAdding review bonus tag.
Comment #9
klausiAlthough 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.
Comment #10.0
(not verified) commentedAdded reviewed projects for review bonus.