Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] set-net question. No, TWO questions

From: hallvard::ystad::helpinhand::com at: 29-Oct-2001 15:15

Inside the 'open func in system/schemes/http/handler I find the following: HTTP-Get-Header: make object! [ Accept: "*/*" Connection: "close" User-Agent: system/schemes/http/user-agent Host: join port/host any [all [port/port-id (port/port-id <> 80) join #":" port/port-id] #] ] How do I change the http-accept header with 'read? I tried read/custom but didn't manage. I searched rebol.com, and came across http://www.rebol.com/library/html/http-post.html, but I find it too complicated. I can do a post operation by simply reducing ['post key=value ] in a read/custom. How do I change the http-accept header in the same simple manner? ~H Oh, and this (as a PS): When I do set-net [[hallvard--ystad--helpinhand--com] "helpinhand.com" helpinhand.com "193.217.79.217" 3128 'generic], are system/schemes/http/proxy/host, [...]/port-id and [...]/type supposed to be updated, or are they simply ignored?
>> set-net [[hallvard--ystad--helpinhand--com] "helpinhand.com"
helpinhand.com "193.217.79.217" 3128 'generic]
>> system/schemes/http/proxy/port-id
== none Will not the "none" setting override the setting I did with set-net? And if not, how do I override it with a 'none value?