cURL / Mailing Lists / curl-library / Single Mail

curl-library

Authorisation

From: Theodore H. Smith <delete_at_elfdata.com>
Date: Mon, 6 Nov 2006 23:17:27 +0000

Hi people,

How does libcurl do authorisation? (I'm from England btw so I'm
spelling it this way :P )

I'm using this tool named HTTP Analyzer. And... it is able to
intercept the streams, but in the stream I see no mention of any
Authorization: field. So how is the authorisation done if not done
via the HTTP request?

I ask, because I'm still unable to replicate some HTTP request.

The request I'd LIKE it to look like (except that it would
authorise), would be like this (as caught by HTTP Analyzer):

POST /coursebuilder/importCourse/getDepartments.asp?orgid=SUHS/
Default HTTP/1.1
Content-Type: multipart/form-data; boundary=--MULTI-PARTS-FORM-DATA-
BOUNDARY
Accept: */*
Content-Length: 14028
User-Agent: Mozilla/4.0 (compatible; )
Host: gdst2.simslearning.co.uk
Connection: Keep-Alive
Cache-Control: no-cache
Cookie: LW=LTVST=39027%2E6665162037;
ASPSESSIONIDASARRAAQ=OHDJFOLBPAABDINEDCDBJDHF;
ASPSESSIONIDCQDTQBDQ=LHIJPNKDKBGHNFDMEDNIPHFI

What parameters do I pass to curl to acheive these headers? The
server I think is some hacked up "not a real server". Just a kludge
to get us by. (I didn't write this server back end so don't shoot at
me!). I'm not sure if it actually accepts "Expect: 100-continue" :
( It might just be returning 403 errors even upon success. Well I
can't see the password passed anyhow, so I have no idea where it is
getting it from :(

Well basically I only see this returned via HTTP Analyzer. If this
analyzer is missing some of the stream, then I have no idea what is
*really* going on. The request:

HTTP/1.1 403 Forbidden
Date: Mon, 06 Nov 2006 23:06:22 GMT
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
Content-Length: 0
Content-Type: text/html
Set-Cookie: LW=LTVST=39027%2E9627546296; expires=Tue, 06-Nov-2007
23:06:22 GMT; path=/
Set-Cookie: ASPSESSIONIDCQBTTBDR=KPOHPPNDFAGDJDBDPECMEHOO; path=/
Cache-control: private
Received on 2006-11-07