Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
neokrish CreditAttribution: neokrish commentedI 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
Another possible bug is that on line 42 of the same file,
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.Comment #2
alex_b CreditAttribution: alex_b commented#1: Sorry, misunderstanding: This issue is about compiling an FAQ. Please report in a separate issue. #835898: Support for basic authentication?
Comment #3
alex_b CreditAttribution: alex_b commentedAnother 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.
Comment #4
mirowais CreditAttribution: mirowais commentedHow can I extend SimplePie parser. I have an embed code in my rss how can i get it using feeds module.
Comment #5
alex_b CreditAttribution: alex_b commentedmiroweis: 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.
Comment #6
alex_b CreditAttribution: alex_b commentedAnother 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
.Comment #7
alex_b CreditAttribution: alex_b commentedAnother 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:
Comment #8
alex_b CreditAttribution: alex_b commentedEntry from #724460: 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.
Comment #9
alex_b CreditAttribution: alex_b commentedHow 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
Comment #10
kenorb CreditAttribution: kenorb commentedClosed because Drupal 6 is no longer supported. If the issue verifiably applies to later versions, please reopen with details and update the version.