We should start FAQs for site builders and developers.

First entry:

Is HTTP basic authentication supported?

Yes. In URL's just supply username and password in the form http://username:password@example.com/.

Comments

neokrish’s picture

Category: task » bug

I am working on importing a secure feed from dgroups.org where the username is in the format user@domain.com. So in this case, how should I format the url?

If the format is http://username@domain.com:password@example.com, then I guess the valid_url function from drupal will find it buggy (or is there an escape character that I am not using?) code below from http_request.inc line 30

function http_request_get_common_syndication($url, $settings = NULL) {
  if (valid_url($url, TRUE)) {
    // Handle password protected feeds.
    $url_parts = parse_url($url);
    $password = $username = NULL;

Another possible bug is that on line 42 of the same file,

$download = http_request_get($url, $username, $password, $accept_invalid_cert);

the function http_request_get is using the variable $url which has the username and password. Shouldn't this be an url without both these values as we are passing the username and password in the second and third parameter respectively?

I tried running http_request_get with devel php code execute block and it does work with the $url without username and password.

alex_b’s picture

Category: bug » task

#1: Sorry, misunderstanding: This issue is about compiling an FAQ. Please report in a separate issue. #835898: Support for basic authentication?

alex_b’s picture

Another entry:

The XML element that I would like to import does not appear in the mapping form

Common Syndication Parser and SimplePie Parser only support a predefined list of source elements. If the element that you are after is not available, you have two options. You can use the Extensible XML parser or you can extend either Common Syndication Parser or SimplePie parser to declare and parse out the element you're after.

mirowais’s picture

How can I extend SimplePie parser. I have an embed code in my rss how can i get it using feeds module.

alex_b’s picture

Title: FAQ » Compile FAQs

miroweis: I think this is a good entry for the FAQs but note, this issue is not a 'ask all' issue but only for collecting FAQ entries. Please open another issue if you have follow up questions. Sorry for the confusion.

Another entry:

How can I extend Fetcher "X", Parser "Y", Processor "Z"?

Every fetcher, parser or processor plugin is a class and can be extended using Feeds' plugin API. To learn more about how to write a plugin, refer to the Developer's guide to Feeds.

alex_b’s picture

Another entry from #781756: New plugins implemented by other modules are not discovered

My new plugin does not show up on the Importer edit page.

Clear caches on admin/settings/performance or with drush cache clear.

alex_b’s picture

Another entry from #754626: Performance - max number of feeds

How many feeds can I subscribe to with Feeds? How well will Feeds perform if I subscribe to X feeds?

That's a very difficult question to answer globally.

Overall, aggregation performance depends on:

- Your server's CPU and storage I/O performance
- Your server's network connection
- The content type being created (complex CCK content type? simple Data record?).
- The activity of your feeds being processed (many new items per run?).
- The number of feeds being processed.
- The parser being used (not as critical as other factors).

Usually, as performance degrades you will see feeds that appear to be stale (no new items present although original feed has been updated a while ago). The staleness will increase with the number of feeds you add. A good measure of overall aggregation performance is the time difference between the most recently updated feed and the last updated feed:

# my_importer_id is the id of the importer to be examined (can be looked up in feeds_importer table).
SELECT MAX(last_executed_time) - MIN(last_executed_time) FROM feeds_schedule WHERE id = 'my_importer_id';
alex_b’s picture

Entry from #724460: What is a good example to map "Enclosure" to?:

What is a good example to map "Enclosure" to?

Use for instance file field as a target. Enclosures (e. g. an mp3 file) will be downloaded to Drupal when mapped to a file field.

alex_b’s picture

How can I copy things from the feed node to new items when they don't show up in the mapping UI?

Here is a quick guide on how to copy properties of the feed node to feed items with custom code: http://drupal.org/node/910146

kenorb’s picture

Issue summary: View changes
Status: Active » Closed (outdated)

Closed because Drupal 6 is no longer supported. If the issue verifiably applies to later versions, please reopen with details and update the version.