wget bug

2004-01-06 Thread Kairos
$ cat wget.exe.stackdump
Exception: STATUS_ACCESS_VIOLATION at eip=77F51BAA
eax= ebx= ecx=0700 edx=610CFE18 esi=610CFE08 edi=
ebp=0022F7C0 esp=0022F74C program=C:\nonspc\cygwin\bin\wget.exe
cs=001B ds=0023 es=0023 fs=0038 gs= ss=0023
Stack trace:
Frame Function  Args
0022F7C0  77F51BAA  (000CFE08, 6107C8F1, 610CFE08, )
0022FBA8  77F7561D  (1004D9C0, , 0022FC18, 00423EF8)
0022FBB8  00424ED9  (1004D9C0, 0022FBF0, 0001, 0022FBF0)
0022FC18  00423EF8  (1004A340, 002A, 7865646E, 6D74682E)
0022FD38  0041583B  (1004A340, 0022FD7C, 0022FD80, 100662C8)
0022FD98  00420D93  (10066318, 0022FDEC, 0022FDF0, 100662C8)
0022FE18  0041EB7D  (10021A80, 0041E460, 610CFE40, 0041C2F4)
0022FEF0  0041C47B  (0004, 61600B64, 10020330, 0022FF24)
0022FF40  61005018  (610CFEE0, FFFE, 07E4, 610CFE04)
0022FF90  610052ED  (, , 0001, )
0022FFB0  00426D41  (0041B7D0, 037F0009, 0022FFF0, 77E814C7)
0022FFC0  0040103C  (0001, 001D, 7FFDF000, F6213CF0)
0022FFF0  77E814C7  (00401000, , 78746341, 0020)
End of stack trace


Setting the Accept: header

2004-01-06 Thread Matthias Friedrich
Hi,

some web services (especially in REST style) use content negotiation
which means the client has to set the Accept: header. Using wget, this
is currently not possible (I checked wget-1.8.2 and wget-1.9).

For example,
wget --header='Accept: application/rdf+xml' http://localhost:4

leads to the following request:

| GET / HTTP/1.0
| User-Agent: Wget/1.9
| Host: localhost:4
| Accept: */*
| Connection: Keep-Alive
| Accept: application/rdf+xml
| 

Which is one Accept too much.

bye,
Matthias


passing a login and password

2004-01-06 Thread robi sen
Hi I have a client who basically needs to regularly grab content from
part of their website and mirror or it and or save it so they can
disseminate it as HTML on a CD.  The website though is written in
ColdFusion as requires application level authentication which is just
form vars passed to the system called login and one called password.

Is there a way to do this with wget?  If not I suspect I can add to the
applications security something that looks for the login and password in
the URL then I could just make sure to append that to the URL that is
given to wget.

Thanks in advance,

Robi




Re: passing a login and password

2004-01-06 Thread Tony Lewis
robi sen wrote:

 Hi I have a client who basically needs to regularly grab content from
 part of their website and mirror or it and or save it so they can
 disseminate it as HTML on a CD.  The website though is written in
 ColdFusion as requires application level authentication which is just
 form vars passed to the system called login and one called password.

 Is there a way to do this with wget?  If not I suspect I can add to the
 applications security something that looks for the login and password in
 the URL then I could just make sure to append that to the URL that is
 given to wget.

Later versions of wget support posting of forms. Try: wget
http://www.yourclient.com/somepage.html --http-post=login=userpassword=pw

Tony