Professional Web Applications Themes

portinstall: fetch(1) doesn't fetch - FreeBSD

Hi, I don't understand the behaviour of fetch(1). Whenever I try to fetch from an URL, I get anwers like  fetch: http://www.google.com: No address record I have set up my network correctly though. If, in contrast, I use wget, I get  --11:20:32-- http://www.google.com/ => `index.html' Resolving www.google.com... done. Connecting to www.google.com[66.102.9.99]:80... connected. HTTP request sent, awaiting response... 200 OK Length: unspecified [text/html] [ <=> ] 2,298 10.69K/s 11:20:39 (10.69 KB/s) - `index.html.1' saved [2298] .... as expected. What have I done wrong? Where can I configure fetch to honor my network setup? Or can I configure portinstall to use wget ...

  1. #1

    Default portinstall: fetch(1) doesn't fetch

    Hi,
    I don't understand the behaviour of fetch(1). Whenever I try to fetch
    from an URL, I get anwers like 
    fetch: http://www.google.com: No address record

    I have set up my network correctly though. If, in contrast, I use wget, I get 
    --11:20:32-- http://www.google.com/
    => `index.html'
    Resolving www.google.com... done.
    Connecting to www.google.com[66.102.9.99]:80... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: unspecified [text/html]

    [ <=> ] 2,298
    10.69K/s

    11:20:39 (10.69 KB/s) - `index.html.1' saved [2298]

    .... as expected.
    What have I done wrong? Where can I configure fetch to honor my
    network setup? Or can I configure portinstall to use wget instead of
    fetch?

    TIA
    Helge
    h Guest

  2. #2

    Default Re: portinstall: fetch(1) doesn't fetch

    h p (regnans) writes: 
    > fetch: http://www.google.com: No address record[/ref]

    Do you have any weird environment variables set ? Like
    FETCH_BIND_ADDRESS or maybe HTTP_PROXY ?

    Check out 'man 3 fetch' for more info.

    /mich
    Michael Guest

  3. #3

    Default Re: portinstall: fetch(1) doesn't fetch

    Michael L. Hostbaek wrote: 
    >> fetch: http://www.google.com: No address record[/ref]
    >
    >
    > Do you have any weird environment variables set ? Like
    > FETCH_BIND_ADDRESS or maybe HTTP_PROXY ?
    >
    > Check out 'man 3 fetch' for more info.
    >
    > /mich
    >[/ref]

    Run it using the verbose -v option as well. It might show more
    interesting output.

    Chris
    Chris Guest

  4. #4

    Default Re: portinstall: fetch(1) doesn't fetch

    On Friday 11 March 2005 10:15, h p wrote: 
    >
    > fetch: http://www.google.com: No address record
    >[/ref]

    This is what you get when fetch can't do a successful dns lookup.

    Just a thought, but I had a problem with the dns proxy on my adsl-nat-router
    where certain applications were consistently failing to get DNS resolution,
    and similar applications were consistently working. It went away when I
    disabled dhcp, and entered the isp servers in resolve.conf

    To use wget look at FETCH_CMD, and related variables,
    in /usr/ports/Mk/bsd.port.mk. I think you also need to set NO_SIZE to prevent
    a fetch specific option being used.
    RW Guest

  5. #5

    Default Re: portinstall: fetch(1) doesn't fetch

    > > I don't understand the behaviour of fetch(1). Whenever I try to fetch 
    > > fetch: http://www.google.com: No address record[/ref]
    >
    > Do you have any weird environment variables set ? Like
    > FETCH_BIND_ADDRESS or maybe HTTP_PROXY ?[/ref]

    Oh my, HTTP_PROXY was the culprit. Thanks. Strange wget doesn't use
    the proxy though.
    This brings me to another question. In my /etc/hosts i have lines like

    192.168.1.44 sue.microsoft.com sue

    but sue is not resolved.
    the /etc/host.conf looks like

    # Auto-generated from nsswitch.conf, do not edit
    hosts
    bind

    and /etc/nsswitch.conf is

    group: compat
    group_compat: nis
    hosts: files dns
    networks: files
    passwd: compat
    passwd_compat: nis
    shells: files

    What am I missing here? I want sue to be resolved without DNS...

    Thanks
    Helge
    h Guest

Similar Threads

  1. #39494 [NEW]: Cannot fetch any row
    By taylor dot ren at gmail dot com in forum PHP Bugs
    Replies: 9
    Last Post: November 15th, 09:42 AM
  2. not able to fetch the request
    By HP in forum PERL Modules
    Replies: 1
    Last Post: January 4th, 06:28 PM
  3. #17593 [Com]: mssql_query doesn't fetch results properly
    By adimuraru at rdslink dot ro in forum PHP Development
    Replies: 0
    Last Post: October 31st, 01:42 PM
  4. How much would an EOS50 fetch now?
    By eug in forum Photography
    Replies: 5
    Last Post: September 23rd, 12:29 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139