Request/Response Attributes problem - WeOnlyDo Discussion board

Request/Response Attributes problem (wodSFTP / wodSFTP.NET / wodSFTPdll)

by Tirex, Friday, March 18, 2005, 15:14 (6989 days ago)

Hi,

what i done wrong ?

Dim oHttpResponseCookie As HttpCookie
Dim oHttpRequestCookie As HttpCookie
Dim oHttpResponseAttribute As HttpHeader
Dim oHttpRequestAttribute As HttpHeader

'copy cookies
If goHttpCom.Response.Cookies.Count > 0 Then
goHttpCom.Request.Cookies.RemoveAll
For Each oHttpResponseCookie In goHttpCom.Response.Cookies
Set oHttpRequestCookie = goHttpCom.Request.Cookies.Add(oHttpResponseCookie.Name, oHttpResponseCookie.Value)
For Each oHttpResponseAttribute In oHttpResponseCookie.Attributes
Set oHttpRequestAttribute = oHttpRequestCookie.Attributes.Add(oHttpResponseAttribute.Name, oHttpResponseAttribute.Value)
Next
Next
End If

Server tries to set these cookies with these attributes:
Set-cookie: ~session=SDSK1:10.217.123.107:0000.0179.0615c4d7; domain=219.4.106; path=/scripts/wgate/zvsdp_create4cb7027b/
Set-cookie: ~http_content_charset=Windows-1250; path=/scripts/wgate/zvsdp_create4cb7027b/
Set-cookie: MYSAPSSO=kg7xBTFVvZPQHEtkYcLS3BPgPiZp2XbIMCC5ti!ithlyH!EJqbe3Uj3Yebw/; path=/; secure

End after my applying of copy cookies and attributes I sent this:
Cookie: ~session=SDSK1:10.217.123.107:0000.0179.0615c4d7; ~http_content_charset=Windows-1250; MYSAPSSO=kg7xBTFVvZPQHEtkYcLS3BPgPiZp2XbIMCC5ti!ithlyH!EJqbe3Uj3Yebw/

Where are copied attributes ? Did I see them in debug file ?

Re: Request/Response Attributes problem

by wodSupport, Friday, March 18, 2005, 15:55 (6989 days ago) @ Tirex

Tirex,

I'm not sure, which attributes exactly you want to see in new request? Can you give me example?