W3C home > Mailing lists > Public > www-lib@w3.org > April to June 1998

Is there anybody knows how to do HTGetForm* with firewall?

From: huimin zhou <huiminz@hotmail.com>
Date: Tue, 26 May 1998 17:46:26 -0400 (EDT)
Message-ID: <19980526214617.18915.qmail@hotmail.com>
To: www-lib@w3.org
Hi,

I have tried to use HTGetFormAbsolute and HTGetFormRelative after I 
registered the proxy server, but both methods fail to work.  I am 
wondering what else should I do to make them work.
My test program is:

int main ()
{
    char *proxy = "http://proxy.watson.ibm.com:8080";
    char * url = "http://av.yahoo.com/bin/query";
    HTRequest * request;
    HTAssocList*formfields = NULL;
    BOOL status;
    HTParentAnchor * anchor = NULL;

    HTProfile_newPreemptiveClient("TestApp", "1.0");
    request = HTRequest_new();
    HTRequest_setOutputFormat(request, WWW_SOURCE);

    HTProxy_add("http", proxy);

    formfields = HTAssocList_new();
    HTAssocList_addObject(formfields, "p", "aviation+food");


    anchor = (HTParentAnchor*)HTAnchor_findAddress(url);
    status = HTGetFormAbsolute(formfields, url, request);

    HTProxy_deleteAll();
    HTRequest_delete(request);              
    HTProfile_delete();
    return 0;
}

______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com
Received on Tuesday, 26 May 1998 17:54:14 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 23 April 2007 18:18:27 GMT