- From: huimin zhou <huiminz@hotmail.com>
- Date: Tue, 26 May 1998 17:46:26 -0400 (EDT)
- 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 UTC