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

About Http api ?

7 views
Skip to first unread message

M.Engur

unread,
Oct 31, 2009, 6:34:01 AM10/31/09
to

Hello,

Our application using "HttpReceiveHttpRequest" api. We can get host name with
"pHost", abspath with "pAbsPath" and QueryString with "pQueryString" adress
but we can not get FullUrl from "pFullUrl" adress of the structure ;

typedef struct _HTTP_COOKED_URL
{
USHORT FullUrlLength; // in bytes not including the NUL
USHORT HostLength; // in bytes (no NUL)
USHORT AbsPathLength; // in bytes (no NUL)
USHORT QueryStringLength; // in bytes (no NUL)
PCWSTR pFullUrl; // points to
"http://hostname:port/abs/.../path?query"
PCWSTR pHost; // points to the first char in the hostname
PCWSTR pAbsPath; // Points to the 3rd '/' char
PCWSTR pQueryString; // Points to the 1st '?' char or NULL
} HTTP_COOKED_URL, *PHTTP_COOKED_URL;

Our application starts and waits for connection using
"HttpReceiveHttpRequest" and recieves no error from this api.
Client is ie, os is windows xp sp3.
We are also recieving http_version as "0,0" and server and client ports
adress 0 and their ip's 0.0.0.0 from structure HTTP_TRANSPORT_ADDRESS which
is nonsense.

What seems to be wrong from this approach ?

Any help apprecited.
Regards.
M.Engur

0 new messages