Timothee Besset | 2 Jan 11:11 2003
Picon

http basic auth ?


I am trying to load a document from an URL protected behind a basic HTTP 
auth. I am passing an url like "http://login:pass <at> host" to HTLoadToFile, 
and for some reason the Auth module doesn't pick up anything and I keep 
getting 'Authorization required' error.

The above syntax works fine for ftp protocol. But for http, should this 
work too? Or I should be parsing it and setting up the credentials myself?

TTimo

Eran "DarkEye" Uzan | 2 Jan 14:15 2003
Picon

linking problems


hello list

i`m tring to implement a  simaple function to download file useing the 
"HTLoadFile()" but i`m getting an error meassages from the linker
every time i have any ( well in the extent of what i checked)  of the libwww 
functin is in the code there are no problem with class or structs (again from 
what  i have checked) the error msg is :
---------------------------------------------------------------------------------------------------------
usr/libi/libwwwcore.a(HTWWWStr.o)(.text+0x6bd): In function `HTMessageIdStr':
: the use of `tmpnam' is dangerous, better use `mkstemp'
/usr/lib/libwwwcore.a(HTInet.o)(.text+0x83b): In function `HTGetTmpFileName':
: the use of `tempnam' is dangerous, better use `mkstemp'
/usr/lib/libwwwapp.a(HTInit.o)(.text+0x24c): In function `HTConverterInit':
: undefined reference to `HTXML_new'
/usr/lib/libwwwapp.a(HTInit.o)(.text+0x276): In function `HTConverterInit':
: undefined reference to `HTXML_new'
/usr/lib/libwwwapp.a(HTInit.o)(.text+0x4bd): In function 
`HTTransferEncoderInit':
: undefined reference to `HTZLib_inflate'
/usr/lib/libwwwapp.a(HTInit.o)(.text+0x509): In function 
`HTContentEncoderInit':
: undefined reference to `HTZLib_inflate'
collect2: ld returned 1 exit status
make: *** [pkgadd] Error 1
---------------------------------------------------------------------------------------------------------
it seems like a missing library but i have no idea what library  i`m useing 
libwww-config for the library listing  that i give to the linker if anyone 
ANY insights please reply

(Continue reading)

Timothee Besset | 2 Jan 14:19 2003
Picon

Re: linking problems


Are you linking dynamically, or trying to do static linking?
If you are linking dynamically, using libwww-config --libs should work fine

TTimo

On Thu, 2 Jan 2003 15:15:11 +0200
"Eran \"DarkEye\" Uzan" <tr4_h5 <at> mishkei.org.il> wrote:

> 
> hello list
> 
> i`m tring to implement a  simaple function to download file useing the 
> "HTLoadFile()" but i`m getting an error meassages from the linker
> every time i have any ( well in the extent of what i checked)  of the libwww 
> functin is in the code there are no problem with class or structs (again from 
> what  i have checked) the error msg is :
> ---------------------------------------------------------------------------------------------------------
> usr/libi/libwwwcore.a(HTWWWStr.o)(.text+0x6bd): In function `HTMessageIdStr':
> : the use of `tmpnam' is dangerous, better use `mkstemp'
> /usr/lib/libwwwcore.a(HTInet.o)(.text+0x83b): In function `HTGetTmpFileName':
> : the use of `tempnam' is dangerous, better use `mkstemp'
> /usr/lib/libwwwapp.a(HTInit.o)(.text+0x24c): In function `HTConverterInit':
> : undefined reference to `HTXML_new'
> /usr/lib/libwwwapp.a(HTInit.o)(.text+0x276): In function `HTConverterInit':
> : undefined reference to `HTXML_new'
> /usr/lib/libwwwapp.a(HTInit.o)(.text+0x4bd): In function 
> `HTTransferEncoderInit':
> : undefined reference to `HTZLib_inflate'
> /usr/lib/libwwwapp.a(HTInit.o)(.text+0x509): In function 
(Continue reading)

John Chapman | 3 Jan 00:04 2003

HTRequest -- making multiple requests


We are using the HTRequest family of functions to try and make multiple
calls to a server.We have it working fine just sending one call to the
server and closing the connection. But there are times we'd like to send
several chunks to the server and receive chunks back. This is what we
are doing that is working fine for a single call. We tried changing the
HTRequest_addConnection to change the second parameter to "Keep-Alive"
instead of "close" in the hopes that would keep it open. But we still
could only send one chunk to the server. How do we change this to allow
multiple calls to the server?

#include <string.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/uswitch.h>
#include <time.h>
#include <netinet/in.h>
#include <stdlib.h>
#include "xmlrpc.h"

HTChunk * chunk = NULL;

PRIVATE int printer (const char *fmt, va_list pArgs) {}
PRIVATE int tracer (const char *fmt, va_list pArgs) {}

PUBLIC HTChunk * PostAnchorToChunk (HTParentAnchor *    source,
                          HTAnchor *             destination,
                          HTRequest *            request)

{
(Continue reading)

Papandreou.George | 6 Jan 18:43 2003
Picon

Memory Leaks (HTMemory_malloc)


Greetings and Happy New Year!

We have been experiencing crashes (over time, say after 10 consecutive
requests) in our HTTP client app that uses libwww.  This application
performs POSTs of XML documents via SSL.

Here is what dbx reports on Solaris 9:

Running: Test_POST_App_sun 
(process id 5710)
Reading librtc.so
RTC: Enabling Error Checking...
signal SEGV (no mapping at the fault address) in (unknown) at 0x10
0x00000010:     <bad address 0x10>
Current function is doPost
 1077                       HTEventList_loop(request);
(/opt/SUNWspro/WS6/bin/sparcv9/dbx) showleaks
Checking for memory leaks...

Actual leaks report    (actual leaks:       190  total size:    2508 bytes)

 Total  Num of  Leaked      Allocation call stack
 Size   Blocks  Block
                Address
======  ====== ==========  =======================================
  1463      76      -      HTMemory_malloc < prefixed 
   912      76      -      calloc < HTMemory_calloc 
   133      38      -      HTMemory_malloc < HTSACopy 

(Continue reading)

Bernhardt Juergen | 9 Jan 15:43 2003
Picon

error code -400 using URI with CGI-params ??


Hi all,

if I try to send a GET request with parameter (like
'http://www.bernhardtsweb.de?session=4711") over a proxy, I always get the
error number -400 in my own code sample and also in the LibWWW sample
'WinCom'!
The same request, sent directly without using proxy settings, the sample
operates perfect!

Does anyone have an idea, why a primitive HTTP request fails with an unknown
error (-400) by passing this request through a proxy?

Thanks for any answers!

Juergen

Charl Barnard | 10 Jan 12:06 2003
Picon

How to use client authentication (client certificates) using HTSSL and libwww

Hi All,

I see there has been a request for this before, but I didn't find a response in the archives: can someone provide some sample code please for using client certificates over SSL to do client authentication? I'm using libwww 5.4.0 and the included HTSSL* on Windows.

Thanks,

Charl


Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now
Bernhardt Juergen | 10 Jan 13:05 2003
Picon

Re: error code -400 using URI with CGI-params ??


I found my error: by using URI with form data, I have to put a slash ('/')
at the end of the URI:
wrong: http://www.bernhardtsweb.de?session=4711
ok: http://www.bernhardtsweb.de/?session=4711
Now, this request will operate with and without proxy!
-- Juergen

Frank Traenkle | 12 Jan 13:49 2003
Picon

Example Showxml does not compile on Cygwin


Hi,

I encounter problems compiling w3c-libwww-5.3.2 on CYGWIN_NT-5.1
1.3.18(0.69/3/2). I get the following error:

Making all in Examples
make[3]: Entering directory
`/usr/local/src/w3c-libwww-5.3.2/Library/Examples'
gcc-2 -g -O2    showxml.c   -o showxml
showxml.c:19: WWWLib.h: No such file or directory
showxml.c:20: WWWInit.h: No such file or directory
showxml.c:21: WWWXML.h: No such file or directory

The settings for gcc-2 are obviously incorrect.

Frank

Frank Traenkle | 12 Jan 13:48 2003
Picon

libwww-config problem on Cygwin


Hi,

for static linking on CYGWIN_NT-5.1 1.3.18(0.69/3/2) libwww-config prints
out -lwwwxml and -lwwwapp in the wrong order. By changing line 51 to

echo -L${exec_prefix}/lib  -lxmltok -lxmlparse    -lwwwinit -lwwwapp -lwwwxm
l -lwwwhtml -lwwwtelnet -lwwwnews -lwwwhttp -lwwwmime -lwwwgopher -lwwwftp -
lwwwfile -lwwwdir -lwwwcache -lwwwstream -lwwwmux -lwwwtrans -lwwwcore -lwww
utils -lmd5

the linking works fine. Please fix in next version.

Frank


Gmane