Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Send a request for an SSL page

10 views
Skip to first unread message

Syko9000

unread,
Aug 12, 2003, 12:34:42 PM8/12/03
to
How do I download a page using SSL? in side a program using XPCOM or
something similar... not from the browser

I'm hoping that is possible

TIA

Syko

Daniel Fournier

unread,
Aug 13, 2003, 12:58:26 AM8/13/03
to
You can use nsIXMLHTTPRequest interface:
<http://lxr.mozilla.org/seamonkey/source/extensions/xmlextras/base/public/nsIXMLHttpRequest.idl>
and send your SSL headers directly, if you know how to process them.

Daniel

Syko9000

unread,
Aug 14, 2003, 4:38:04 PM8/14/03
to
is there another way of doing this? because, I'm sending a 'PROPFIND /
HTTP/1.1' and I get back an 'HTTP/1.1 302 Object Moved' which is
fine... but the XMLHttpRequest Object then takes it upon itself to
request it again from the new location... but it requests using GET...
not PROPFIND ... unless there is a way to stop that ... I need a
different way

TIA

Syko

Syko9000

unread,
Aug 14, 2003, 4:49:58 PM8/14/03
to
Syko9000 wrote:

and it changed the user-agent and re-added all the useless (in this
context) headers.... seems like a really stupid way for it to be acting

Syko

Darin Fisher

unread,
Aug 20, 2003, 10:15:59 PM8/20/03
to Syko9000


Mozilla's HTTP implementation conforms with the non-standard, but widely
implemented behavior, that the HTTP request method "should be" GET when
following a 302. To force Mozilla to preserve the original request
method, the server can send a 307 instead of a 302. That is, of course,
only an option if you have control over the server/site.

As for the headers not being added back in... that is reasonably a bug
in the implementation. The HTTP layer should preserve the request
headers from the original request. I've filed bug 216828 for this issue.

As for being able to disable the auto-redirect behavior when using
XMLHttpRequest, it doesn't look like there is a solution there. If
however you are using the Mozilla Networking Library (aka Necko)
directly, then there is a way to disable the auto-redirect behavior.

Darin

0 new messages