Quantcast
Channel: West Wind Message Board Messages
Viewing all 10393 articles
Browse latest View live

Re: Tracing an HTTP request

$
0
0
Re: Tracing an HTTP request
Web Connection 5.0
Re: Tracing an HTTP request
Jan. 20, 2013
02:20 am
3P3050TZHShow this entire thread in new window
Gratar Image based on email address
From:Rick Strahl
To:Stein Goering
Just change the URL to https://. You don't need the lSecureLink property (wwHttp figures this out automatically - this is only useful if using special ports for SSL) and it wouldn't work on that request anyway because you're giving it the wrong URL. http:// and https:// are two completely different URLs as far as an HTTP client is concerned.

+++ Rick ---



"Try calling the service with https:// to start and then you might get the results you're expecting."

How do I do that? I thought I just needed to set oHTTP.lSecureLink to True before calling httpGet(). I have verified that's the case. What else do I have to do to force an https call?

--stein

Looks like the service is redirecting from http:// to https://. In the process the request becomes a GET.

Try calling the service with https:// to start and then you might get the results you're expecting.

+++ Rick ---



I added the postmode and contenttype settings - still getting the same 403 response from the server. And the techs on their side still claim it's because I'm sending a GET request instead of a POST.

And I still don't understand the Fiddler results - why is each request listed twice?

And why does the json post show up as a GET after initially being flagged as a POST?


Stein,

To post a raw buffer just use:

loHttp.nHttpPostMode = 4 && this is not necessary I think loHttp.cContentType = "application/json" loHttp.AddPostKey(lcJson)


+++ Rick ---


I'm trying to get my program to interact with a REST service. A typical request would look like this:

http://longwoodlive.org/d2l/api/lp/1.0/organization/info? - followed by several querystring parameters that are used to validate the request.

If I submit the above using wwHTTP::httpGet I get the desired response. However, for this one, which creates a user account, I need to Post a JSON string:

http://longwoodlive.org/d2l/api/lp/1.0/users/

I use AddPostKey(.F.,"<JSON text..>") to load the string, then execute the call with httpGet. My understanding is this should generate a POST request, but I am getting an Invalid Token message back from the service. Their techs tell me this may be caused by an invalid HTTP method, i.e. a GET instead of a POST. They also told me I should use SSL when making these calls, so I set lSecureLink on.

I then set up Fiddler to try and track this. I enabled the self-generated certificate so I could track HTTPS sessions. It looks like each of my hits generates 2 Fiddler entries, one without SSL and one with:

302 HTTP longwoodlive.org /d2l/api/lp/1.0/users/?&x_...
403 HTTPS longwoodlive.org /d2l/api/lp/1.0/users/?&x_...

The raw data for the first one shows the expected POST request:
POST http://longwoodlive.org/d2l/api/lp/1.0/users/?&x_a=6EAimWV1Q56N_M0dU_ZNWA&x_b=yU_XnmtI4QrmC8Uj-IBvcX&x_c=Kg6TwcxIBm_rkiTTUIPQ-uNYku02X8TCjrrLslo_-wY&x_d=z9brlOMkpnBbUEz1TYnT3BJM-4T0-sQBzslDZ6T42iI&x_t=1358318810&end=now HTTP/1.1
Content-Type: application/x-www-form-urlencoded
User-Agent: West Wind Internet Protocols 5.65
Host: longwoodlive.org
Content-Length: 229
Pragma: no-cache

{
"OrgDefinedId": "XX000TEST",
"FirstName": "Tom",
"MiddleName": "",
"LastName": "Foolery",
"ExternalEmail": "stein@aceware.com",
"UserName": "Tom.Foolery",
"RoleId": "78",
"IsActive": true,
"SendCreationEmail": false
}

But the response contains only a header:
HTTP/1.0 302 Found
Location: https://longwoodlive.org/d2l/api/lp/1.0/users/?&x_a=6EAimWV1Q56N_M0dU_ZNWA&x_b=yU_XnmtI4QrmC8Uj-IBvcX&x.....
Server: BigIP
Connection: Keep-Alive
Content-Length: 0

The second request shows the same URL, except https this time, but the method has changed to GET:

GET https://longwoodlive.org/d2l/api/lp/1.0/users/?&x_a=6EAimWV1Q56N_M0dU_ZNWA&x_b=yU_XnmtI4QrmC8Uj-IBvcX&x...
Connection: Keep-Alive
User-Agent: West Wind Internet Protocols 5.65
Cache-Control: no-cache
Pragma: no-cache
Host: longwoodlive.org

Response:
HTTP/1.1 403 Forbidden
Cache-Control: private
Content-Length: 13
Content-Type: text/html; charset=utf-8
Server: Microsoft-IIS/6.0
X-XSS-Protection: 0
X-Powered-By: ASP.NET
Date: Tue, 15 Jan 2013 04:46:16 GMT

Invalid token

I do get a response body but it's just the Invalid token notice.

What I need is for the HTTPS request to go out as a POST method. Why does it get switched to GET and how can I prevent that from happening?

And why am I seeing 2 entries for each call?

Any assistance would be appreciated...

--stein










Rick Strahl
West Wind Technologies


from Geneva, Switzerland

Making waves on the Web

HTML Help Builder

Property FIRSTON is not found

$
0
0
Property FIRSTON is not found
Web Connection 5.0
Property FIRSTON is not found
Jan. 20, 2013
06:40 am
3P30EB3GWShow this entire thread in new window
Gratar Image based on email address
From:Michael Hogan (Ideate Hosting)
To:All
We have a very active WebConnect site. Moved SQL session tables to a separate machine due to high memory usage on the server - but we're getting an awful lot of 1734 errors:

Error: 1734
Message: Property FIRSTON is not found.
Code:
Program: newsession
Line No: 271

The wwsession table contents look normal to me - the sessionid, firston and laston fields are getting populated (UserID is blank). Any idea what may be happening? IP connectivity between the machines is good (<1ms) but traffic on this site is very high.

Using SQL Express 2012.

Michael
www.WebConnectionHosting.com

HTML Help Builder

Re: Property FIRSTON is not found

$
0
0
Re: Property FIRSTON is not found
Web Connection 5.0
Re: Property FIRSTON is not found
Jan. 20, 2013
10:56 am
3P30NG3UMShow this entire thread in new window
Gratar Image based on email address
From:Rick Strahl
To:

You need to debug. Sounds to me the SQL connection or SQL statement is failing and the result is not properly coming back (ie. the SCATTER NAME is failing).

+++ Rick ---



We have a very active WebConnect site. Moved SQL session tables to a separate machine due to high memory usage on the server - but we're getting an awful lot of 1734 errors:

Error: 1734
Message: Property FIRSTON is not found.
Code:
Program: newsession
Line No: 271

The wwsession table contents look normal to me - the sessionid, firston and laston fields are getting populated (UserID is blank). Any idea what may be happening? IP connectivity between the machines is good (<1ms) but traffic on this site is very high.

Using SQL Express 2012.


Rick Strahl
West Wind Technologies

Making waves on the Web

from Geneva, Switzerland

Print something more then one Topic

$
0
0
Print something more then one Topic
HTML Help Builder
Print something more then one Topic
Jan. 21, 2013
05:35 am
3P40BZWHBShow this entire thread in new window
Gratar Image based on email address
From:Dirk
To:All
Hallo Rick,

wenn ich mehr als ein Topic, also auch die UnterTopics drucken möchte, kommt immer die Fehlermeldung

Zeile: 11
Fehler: Objekt erwartet

$(function() { $("#example").codeExampleTabs(); });

Was mache ich falsch?!?

Herzliche Grüße
Dirk

Re: Tracing an HTTP request

$
0
0
Re: Tracing an HTTP request
Web Connection 5.0
Re: Tracing an HTTP request
Jan. 21, 2013
09:11 am
3P40JP64IShow this entire thread in new window
Gratar Image based on email address
From:Stein Goering
To:Rick Strahl
Duh.

Somehow I thought I couldn't include the protocol in the URL. Evidently I got confused and was remembering this line from the docs:

"Note the domain name or IP address is a pure IP/domain name address - do not specify any protocol prefixes like http:// or smtp:// etc."

which is the spec for to the MailServer setting in wwSMTP. It helps to RTFM - helps even more to read the correct section.

Anyway, if I specify https up front, each hit generates just a single entry in Fiddler so I can trace the call.

So when I didn't specify a protocol, the Fiddler entries indicated that there was an initial HTTP call, and then when that failed it tried the HTTPS url. That meant that my GET requests actually worked without the HTTPS. What triggered those duplicate calls? Is that part of the httpGet behavior?

--stein


Just change the URL to https://. You don't need the lSecureLink property (wwHttp figures this out automatically - this is only useful if using special ports for SSL) and it wouldn't work on that request anyway because you're giving it the wrong URL. http:// and https:// are two completely different URLs as far as an HTTP client is concerned.

+++ Rick ---



"Try calling the service with https:// to start and then you might get the results you're expecting."

How do I do that? I thought I just needed to set oHTTP.lSecureLink to True before calling httpGet(). I have verified that's the case. What else do I have to do to force an https call?

--stein

Looks like the service is redirecting from http:// to https://. In the process the request becomes a GET.

Try calling the service with https:// to start and then you might get the results you're expecting.

+++ Rick ---



I added the postmode and contenttype settings - still getting the same 403 response from the server. And the techs on their side still claim it's because I'm sending a GET request instead of a POST.

And I still don't understand the Fiddler results - why is each request listed twice?

And why does the json post show up as a GET after initially being flagged as a POST?


Stein,

To post a raw buffer just use:

loHttp.nHttpPostMode = 4 && this is not necessary I think loHttp.cContentType = "application/json" loHttp.AddPostKey(lcJson)


+++ Rick ---


I'm trying to get my program to interact with a REST service. A typical request would look like this:

http://longwoodlive.org/d2l/api/lp/1.0/organization/info? - followed by several querystring parameters that are used to validate the request.

If I submit the above using wwHTTP::httpGet I get the desired response. However, for this one, which creates a user account, I need to Post a JSON string:

http://longwoodlive.org/d2l/api/lp/1.0/users/

I use AddPostKey(.F.,"<JSON text..>") to load the string, then execute the call with httpGet. My understanding is this should generate a POST request, but I am getting an Invalid Token message back from the service. Their techs tell me this may be caused by an invalid HTTP method, i.e. a GET instead of a POST. They also told me I should use SSL when making these calls, so I set lSecureLink on.

I then set up Fiddler to try and track this. I enabled the self-generated certificate so I could track HTTPS sessions. It looks like each of my hits generates 2 Fiddler entries, one without SSL and one with:

302 HTTP longwoodlive.org /d2l/api/lp/1.0/users/?&x_...
403 HTTPS longwoodlive.org /d2l/api/lp/1.0/users/?&x_...

The raw data for the first one shows the expected POST request:
POST http://longwoodlive.org/d2l/api/lp/1.0/users/?&x_a=6EAimWV1Q56N_M0dU_ZNWA&x_b=yU_XnmtI4QrmC8Uj-IBvcX&x_c=Kg6TwcxIBm_rkiTTUIPQ-uNYku02X8TCjrrLslo_-wY&x_d=z9brlOMkpnBbUEz1TYnT3BJM-4T0-sQBzslDZ6T42iI&x_t=1358318810&end=now HTTP/1.1
Content-Type: application/x-www-form-urlencoded
User-Agent: West Wind Internet Protocols 5.65
Host: longwoodlive.org
Content-Length: 229
Pragma: no-cache

{
"OrgDefinedId": "XX000TEST",
"FirstName": "Tom",
"MiddleName": "",
"LastName": "Foolery",
"ExternalEmail": "stein@aceware.com",
"UserName": "Tom.Foolery",
"RoleId": "78",
"IsActive": true,
"SendCreationEmail": false
}

But the response contains only a header:
HTTP/1.0 302 Found
Location: https://longwoodlive.org/d2l/api/lp/1.0/users/?&x_a=6EAimWV1Q56N_M0dU_ZNWA&x_b=yU_XnmtI4QrmC8Uj-IBvcX&x.....
Server: BigIP
Connection: Keep-Alive
Content-Length: 0

The second request shows the same URL, except https this time, but the method has changed to GET:

GET https://longwoodlive.org/d2l/api/lp/1.0/users/?&x_a=6EAimWV1Q56N_M0dU_ZNWA&x_b=yU_XnmtI4QrmC8Uj-IBvcX&x...
Connection: Keep-Alive
User-Agent: West Wind Internet Protocols 5.65
Cache-Control: no-cache
Pragma: no-cache
Host: longwoodlive.org

Response:
HTTP/1.1 403 Forbidden
Cache-Control: private
Content-Length: 13
Content-Type: text/html; charset=utf-8
Server: Microsoft-IIS/6.0
X-XSS-Protection: 0
X-Powered-By: ASP.NET
Date: Tue, 15 Jan 2013 04:46:16 GMT

Invalid token

I do get a response body but it's just the Invalid token notice.

What I need is for the HTTPS request to go out as a POST method. Why does it get switched to GET and how can I prevent that from happening?

And why am I seeing 2 entries for each call?

Any assistance would be appreciated...

--stein










Bug in DbResourceDataManager

$
0
0
Bug in DbResourceDataManager
West Wind Web Toolkit for ASP.NET
Bug in DbResourceDataManager
Jan. 21, 2013
09:19 am
3P40JZUEIShow this entire thread in new window
Gratar Image based on email address
From:Adam
To:All
Found a pretty nasty (IMHO) bug in DbResourceDataManager.cs, GetResourceSet @ line 120.

There's an insert into a dictionary that is within a try/catch block, but if an error is caught, there's no logging or handling.

My resource list is over a thousand items and didn't realize I had some duplicate ID's. Spent several hours trying to figure out what I was doing wrong before I finally ended up decompiling and debugging through the source only to see the dictionary insert throw an exception because there was a duplicate ID.

Not sure I see the point of adding a try/catch block if there's no code to process the error.

Adam


Westwind.Web, Westwind.Utilities Sigining

$
0
0
Westwind.Web, Westwind.Utilities Sigining
West Wind Web Toolkit for ASP.NET
Westwind.Web, Westwind.Utilities Sigining
Jan. 21, 2013
10:28 am
3P40MFYNGShow this entire thread in new window
Gratar Image based on email address
From:Orry
To:All
Hello,

Are there any signed Westwind.Web.dll & Westwind.Utilities.dll libraries? We would like to be able to reference these assemblies from within a signed assembly.

XML packet is malformed or otherwise unreadable

$
0
0
XML packet is malformed or otherwise unreadable
Web Connection 5.0
XML packet is malformed or otherwise unreadable
Jan. 21, 2013
02:43 pm
3P40VIW7UShow this entire thread in new window
Gratar Image based on email address
From:Hermann Strijewski
To:All
I loaded THIS xml request
<?xmlversion="1.0" encoding="utf-8" ?><YourMembership><Version>1.95</Version><ApiKey>00000000-0000-0000-0000-0000000000</ApiKey><CallID>001</CallID><SaPasscode>******</SaPasscode><Call Method="Sa.Members.All.GetIDs"></Call></YourMembership>

into a memory variable CXML:

and then try to send it to a server with this code:

oHTTP = CREATEOBJECT("wwHttp") oHTTP.HTTPConnect("api.yourmembership.com",,,.T.) oHTTP.nHttpPostMode = 4 && XML oHTTP.AddPostKey(CXML) LCHTML="" LNTEXT=0 lnResult=oHTTP.HTTPGetEx("/",@lcHTML,@lnText) ? "RESULT:"+TRIM(lcHTML)

But I always get back the error message:
XML packet is malformed or otherwise unreadable.

The YourMembership company tells me that if they send my XML packet with normal .NET/C# code to their server it runs fine and gives a result XML. But they don't support VFP, so they can't tell me where I'm going wrong.

Any suggestions as to how I could solve this? (I don't want to have to learn C# --- Aargh :(

Hermann


Calling a form defined in a vcx file....

$
0
0
Calling a form defined in a vcx file....
FoxInCloud
Calling a form defined in a vcx file....
Jan. 22, 2013
02:25 am
3P5056OJHShow this entire thread in new window
Gratar Image based on email address
From:Michele
To:thn@foxincloud.com
I have a class in my vcx file that defines a form.
Normally in Foxpro i call this form using

Local oForm
oForm = CreateObject("_form")
oForm.Show()

I can i do the same operation with foxinloud ?

Thanks

Re: Calling a form defined in a vcx file....

$
0
0
Re: Calling a form defined in a vcx file....
FoxInCloud
Re: Calling a form defined in a vcx file....
Jan. 22, 2013
02:27 am
3P5059SMHShow this entire thread in new window
Gratar Image based on email address
From:Thierry Nivelet (FoxInCloud)
To:Michele
sure ...
thisForm.wForm("_form") && subform within the same page thisForm.wFormMaster("_form") && form in a new page


I have a class in my vcx file that defines a form.
Normally in Foxpro i call this form using

Local oForm
oForm = CreateObject("_form")
oForm.Show()

I can i do the same operation with foxinloud ?

Thanks


Thierry Nivelet (FoxInCloud)
Never explain, never complain (Queen Elizabeth II)

Problem calling a form with parameters

$
0
0
Problem calling a form with parameters
FoxInCloud
Problem calling a form with parameters
Jan. 22, 2013
05:44 am
3P50CB3WBShow this entire thread in new window
Gratar Image based on email address
From:Michele
To:thn@foxincloud.com
I have one class (form's based) that receive as parameter the table i have to opend and show in a grid......or better i receive the kind of a table and on that table i have to make a Select ....From...Where... and show in the grid the resulting cursor...

I put all the code in the Init method, but the second time i call the form the grid is empty......

In the Init my code is this:

Lparameters cTipoTab, cValue, cOrderIfPcount()>0DoDefault()This.TipoTab = cTipoTab Use wdfPath + "TaGen" In 0Select Code, Des1 From TaGen Where Tipo = This.TipoTab Order By Code Into Cursor Tab ReadWrite Use In TaGenWith .Grid1 .RecordSource = "Tab" .Column1.ControlSource = "Tab.Code" .Column2.ControlSource = "Tab.Des1" .SetFocusEndWithEndif

Re: XML packet is malformed or otherwise unreadable

$
0
0
Re: XML packet is malformed or otherwise unreadable
Web Connection 5.0
Re: XML packet is malformed or otherwise unreadable
Jan. 22, 2013
06:12 am
3P50DALP0Show this entire thread in new window
Gratar Image based on email address
From:Rick Strahl
To:Hermann Strijewski

What does the actual XML look like? You have the doc set to utf-8 encoding but is the document actually UTF-8 encided?

You should validate the XML by loading it into an XML dom - that will tell you if there's a problem. IOW, if there are extended characters (or quotes or ampersands >< etc) in the content that will make the XML document fail to validate.

+++ Rick ---



I loaded THIS xml request
<?xmlversion="1.0" encoding="utf-8" ?><YourMembership><Version>1.95</Version><ApiKey>00000000-0000-0000-0000-0000000000</ApiKey><CallID>001</CallID><SaPasscode>******</SaPasscode><Call Method="Sa.Members.All.GetIDs"></Call></YourMembership>

into a memory variable CXML:

and then try to send it to a server with this code:

oHTTP = CREATEOBJECT("wwHttp") oHTTP.HTTPConnect("api.yourmembership.com",,,.T.) oHTTP.nHttpPostMode = 4 && XML oHTTP.AddPostKey(CXML) LCHTML="" LNTEXT=0 lnResult=oHTTP.HTTPGetEx("/",@lcHTML,@lnText) ? "RESULT:"+TRIM(lcHTML)

But I always get back the error message:
XML packet is malformed or otherwise unreadable.

The YourMembership company tells me that if they send my XML packet with normal .NET/C# code to their server it runs fine and gives a result XML. But they don't support VFP, so they can't tell me where I'm going wrong.

Any suggestions as to how I could solve this? (I don't want to have to learn C# --- Aargh :(



Rick Strahl
West Wind Technologies


from Geneva, Switzerland

Making waves on the Web

Re: Tracing an HTTP request

$
0
0
Re: Tracing an HTTP request
Web Connection 5.0
Re: Tracing an HTTP request
Jan. 22, 2013
06:12 am
3P50DALOQShow this entire thread in new window
Gratar Image based on email address
From:Rick Strahl
To:Stein Goering

No, the server is redirecting (ie. Response.Redirect) because presumably it disallows non-HTTPS requests. But redirects cna only be GETs - if the original URL was a POST and you had posted data, the redirect will lose that data.

+++ Rick ---



Duh.

Somehow I thought I couldn't include the protocol in the URL. Evidently I got confused and was remembering this line from the docs:

"Note the domain name or IP address is a pure IP/domain name address - do not specify any protocol prefixes like http:// or smtp:// etc."

which is the spec for to the MailServer setting in wwSMTP. It helps to RTFM - helps even more to read the correct section.

Anyway, if I specify https up front, each hit generates just a single entry in Fiddler so I can trace the call.

So when I didn't specify a protocol, the Fiddler entries indicated that there was an initial HTTP call, and then when that failed it tried the HTTPS url. That meant that my GET requests actually worked without the HTTPS. What triggered those duplicate calls? Is that part of the httpGet behavior?

--stein


Just change the URL to https://. You don't need the lSecureLink property (wwHttp figures this out automatically - this is only useful if using special ports for SSL) and it wouldn't work on that request anyway because you're giving it the wrong URL. http:// and https:// are two completely different URLs as far as an HTTP client is concerned.

+++ Rick ---



"Try calling the service with https:// to start and then you might get the results you're expecting."

How do I do that? I thought I just needed to set oHTTP.lSecureLink to True before calling httpGet(). I have verified that's the case. What else do I have to do to force an https call?

--stein

Looks like the service is redirecting from http:// to https://. In the process the request becomes a GET.

Try calling the service with https:// to start and then you might get the results you're expecting.

+++ Rick ---



I added the postmode and contenttype settings - still getting the same 403 response from the server. And the techs on their side still claim it's because I'm sending a GET request instead of a POST.

And I still don't understand the Fiddler results - why is each request listed twice?

And why does the json post show up as a GET after initially being flagged as a POST?


Stein,

To post a raw buffer just use:

loHttp.nHttpPostMode = 4 && this is not necessary I think loHttp.cContentType = "application/json" loHttp.AddPostKey(lcJson)


+++ Rick ---


I'm trying to get my program to interact with a REST service. A typical request would look like this:

http://longwoodlive.org/d2l/api/lp/1.0/organization/info? - followed by several querystring parameters that are used to validate the request.

If I submit the above using wwHTTP::httpGet I get the desired response. However, for this one, which creates a user account, I need to Post a JSON string:

http://longwoodlive.org/d2l/api/lp/1.0/users/

I use AddPostKey(.F.,"<JSON text..>") to load the string, then execute the call with httpGet. My understanding is this should generate a POST request, but I am getting an Invalid Token message back from the service. Their techs tell me this may be caused by an invalid HTTP method, i.e. a GET instead of a POST. They also told me I should use SSL when making these calls, so I set lSecureLink on.

I then set up Fiddler to try and track this. I enabled the self-generated certificate so I could track HTTPS sessions. It looks like each of my hits generates 2 Fiddler entries, one without SSL and one with:

302 HTTP longwoodlive.org /d2l/api/lp/1.0/users/?&x_...
403 HTTPS longwoodlive.org /d2l/api/lp/1.0/users/?&x_...

The raw data for the first one shows the expected POST request:
POST http://longwoodlive.org/d2l/api/lp/1.0/users/?&x_a=6EAimWV1Q56N_M0dU_ZNWA&x_b=yU_XnmtI4QrmC8Uj-IBvcX&x_c=Kg6TwcxIBm_rkiTTUIPQ-uNYku02X8TCjrrLslo_-wY&x_d=z9brlOMkpnBbUEz1TYnT3BJM-4T0-sQBzslDZ6T42iI&x_t=1358318810&end=now HTTP/1.1
Content-Type: application/x-www-form-urlencoded
User-Agent: West Wind Internet Protocols 5.65
Host: longwoodlive.org
Content-Length: 229
Pragma: no-cache

{
"OrgDefinedId": "XX000TEST",
"FirstName": "Tom",
"MiddleName": "",
"LastName": "Foolery",
"ExternalEmail": "stein@aceware.com",
"UserName": "Tom.Foolery",
"RoleId": "78",
"IsActive": true,
"SendCreationEmail": false
}

But the response contains only a header:
HTTP/1.0 302 Found
Location: https://longwoodlive.org/d2l/api/lp/1.0/users/?&x_a=6EAimWV1Q56N_M0dU_ZNWA&x_b=yU_XnmtI4QrmC8Uj-IBvcX&x.....
Server: BigIP
Connection: Keep-Alive
Content-Length: 0

The second request shows the same URL, except https this time, but the method has changed to GET:

GET https://longwoodlive.org/d2l/api/lp/1.0/users/?&x_a=6EAimWV1Q56N_M0dU_ZNWA&x_b=yU_XnmtI4QrmC8Uj-IBvcX&x...
Connection: Keep-Alive
User-Agent: West Wind Internet Protocols 5.65
Cache-Control: no-cache
Pragma: no-cache
Host: longwoodlive.org

Response:
HTTP/1.1 403 Forbidden
Cache-Control: private
Content-Length: 13
Content-Type: text/html; charset=utf-8
Server: Microsoft-IIS/6.0
X-XSS-Protection: 0
X-Powered-By: ASP.NET
Date: Tue, 15 Jan 2013 04:46:16 GMT

Invalid token

I do get a response body but it's just the Invalid token notice.

What I need is for the HTTPS request to go out as a POST method. Why does it get switched to GET and how can I prevent that from happening?

And why am I seeing 2 entries for each call?

Any assistance would be appreciated...

--stein













Rick Strahl
West Wind Technologies


from Geneva, Switzerland

Making waves on the Web

Re: Westwind.Web, Westwind.Utilities Sigining

$
0
0
Re: Westwind.Web, Westwind.Utilities Sigining
West Wind Web Toolkit for ASP.NET
Re: Westwind.Web, Westwind.Utilities Sigining
Jan. 22, 2013
06:12 am
3P50DALO9Show this entire thread in new window
Gratar Image based on email address
From:Rick Strahl
To:Orry
Hi Orry,

I'm not providing signed versions, but you can grab the source code and sign them yourself.

+++ Rick ---



Hello,

Are there any signed Westwind.Web.dll & Westwind.Utilities.dll libraries? We would like to be able to reference these assemblies from within a signed assembly.




Rick Strahl
West Wind Technologies


from Geneva, Switzerland

Making waves on the Web

Re: Problem calling a form with parameters

$
0
0
Re: Problem calling a form with parameters
FoxInCloud
Re: Problem calling a form with parameters
Jan. 22, 2013
06:20 am
3P50DL0M2Show this entire thread in new window
Gratar Image based on email address
From:Thierry Nivelet (FoxInCloud)
To:Michele
can you post the instruction b which you call this form?
thanks


I have one class (form's based) that receive as parameter the table i have to opend and show in a grid......or better i receive the kind of a table and on that table i have to make a Select ....From...Where... and show in the grid the resulting cursor...

I put all the code in the Init method, but the second time i call the form the grid is empty......

In the Init my code is this:

Lparameters cTipoTab, cValue, cOrderIfPcount()>0DoDefault()This.TipoTab = cTipoTab Use wdfPath + "TaGen" In 0Select Code, Des1 From TaGen Where Tipo = This.TipoTab Order By Code Into Cursor Tab ReadWrite Use In TaGenWith .Grid1 .RecordSource = "Tab" .Column1.ControlSource = "Tab.Code" .Column2.ControlSource = "Tab.Des1" .SetFocusEndWithEndif


Thierry Nivelet (FoxInCloud)
Never explain, never complain (Queen Elizabeth II)


Re: Print something more then one Topic

$
0
0
Re: Print something more then one Topic
HTML Help Builder
Re: Print something more then one Topic
Jan. 22, 2013
07:11 am
3P50FFHEPShow this entire thread in new window
Gratar Image based on email address
From:Rick Strahl
To:Dirk

Works for me... What browser are you using? I'm using Chrome and if I print (to PDF in this case) it just works.

Also you may need to update your templates so that wwhelp.js is available... and possibly switch the active template to the Word template to get decent looking print output.

+++ Rick ---



Hallo Rick,

wenn ich mehr als ein Topic, also auch die UnterTopics drucken möchte, kommt immer die Fehlermeldung

Zeile: 11
Fehler: Objekt erwartet

$(function() { $("#example").codeExampleTabs(); });

Was mache ich falsch?!?

Herzliche Grüße
Dirk



Rick Strahl
West Wind Technologies


from Geneva, Switzerland

Making waves on the Web

Re: Problem calling a form with parameters

$
0
0
Re: Problem calling a form with parameters
FoxInCloud
Re: Problem calling a form with parameters
Jan. 22, 2013
07:20 am
3P50FQ8TKShow this entire thread in new window

LPARAMETERS nButton, nShift, nXcoord, nYcoordIF (Type('m.thisForm.wlHTMLgen') == 'L' AND m.thisForm.wlHTMLgen)RETURN .T.ELSELocal cValue, cTipoTabLocal cObject cObject = "This.Parent." + This.ControlName + ".Value" cValue = &cObject cObject = "This.Parent." + This.ControlName + ".TipoTab" cTipo = &cObjectexternalform FormTagen FormTaGen = thisform.wForm('_form_tagen',"wFormCallBack",cTipo,cValue)ENDIF



can you post the instruction b which you call this form?
thanks


I have one class (form's based) that receive as parameter the table i have to opend and show in a grid......or better i receive the kind of a table and on that table i have to make a Select ....From...Where... and show in the grid the resulting cursor...

I put all the code in the Init method, but the second time i call the form the grid is empty......

In the Init my code is this:

Lparameters cTipoTab, cValue, cOrderIfPcount()>0DoDefault()This.TipoTab = cTipoTab Use wdfPath + "TaGen" In 0Select Code, Des1 From TaGen Where Tipo = This.TipoTab Order By Code Into Cursor Tab ReadWrite Use In TaGenWith .Grid1 .RecordSource = "Tab" .Column1.ControlSource = "Tab.Code" .Column2.ControlSource = "Tab.Des1" .SetFocusEndWithEndif


Re: Westwind.Web, Westwind.Utilities Sigining

$
0
0
Re: Westwind.Web, Westwind.Utilities Sigining
West Wind Web Toolkit for ASP.NET
Re: Westwind.Web, Westwind.Utilities Sigining
Jan. 22, 2013
07:21 am
3P50FR7F1Show this entire thread in new window
Gratar Image based on email address
From:Orry
To:Rick Strahl
Yup, right. Thanks for the speedy reply.


Hi Orry,

I'm not providing signed versions, but you can grab the source code and sign them yourself.

+++ Rick ---



Hello,

Are there any signed Westwind.Web.dll & Westwind.Utilities.dll libraries? We would like to be able to reference these assemblies from within a signed assembly.




Re: Problem calling a form with parameters

$
0
0
Re: Problem calling a form with parameters
FoxInCloud
Re: Problem calling a form with parameters
Jan. 22, 2013
07:52 am
3P50GVSNDShow this entire thread in new window
Gratar Image based on email address
From:Thierry Nivelet (FoxInCloud)
To:Michele
Please try
.RecordSource = ""
before
SELECT ... into Tab

As the form is already instantiated, with
.RecordSource = "Tab"
SELECT ... into Tab
makes the grid loose its columns
(VFP behavior)

LPARAMETERS nButton, nShift, nXcoord, nYcoordIF (Type('m.thisForm.wlHTMLgen') == 'L' AND m.thisForm.wlHTMLgen)RETURN .T.ELSELocal cValue, cTipoTabLocal cObject cObject = "This.Parent." + This.ControlName + ".Value" cValue = &cObject cObject = "This.Parent." + This.ControlName + ".TipoTab" cTipo = &cObjectexternalform FormTagen FormTaGen = thisform.wForm('_form_tagen',"wFormCallBack",cTipo,cValue)ENDIF



can you post the instruction b which you call this form?
thanks


I have one class (form's based) that receive as parameter the table i have to opend and show in a grid......or better i receive the kind of a table and on that table i have to make a Select ....From...Where... and show in the grid the resulting cursor...

I put all the code in the Init method, but the second time i call the form the grid is empty......

In the Init my code is this:

Lparameters cTipoTab, cValue, cOrderIfPcount()>0DoDefault()This.TipoTab = cTipoTab Use wdfPath + "TaGen" In 0Select Code, Des1 From TaGen Where Tipo = This.TipoTab Order By Code Into Cursor Tab ReadWrite Use In TaGenWith .Grid1 .RecordSource = "Tab" .Column1.ControlSource = "Tab.Code" .Column2.ControlSource = "Tab.Des1" .SetFocusEndWithEndif




Thierry Nivelet (FoxInCloud)
Never explain, never complain (Queen Elizabeth II)

Re: XML packet is malformed or otherwise unreadable

$
0
0
Re: XML packet is malformed or otherwise unreadable
Web Connection 5.0
Re: XML packet is malformed or otherwise unreadable
Jan. 22, 2013
07:56 am
3P50H0RWYShow this entire thread in new window
Gratar Image based on email address
From:Hermann Strijewski
To:Rick Strahl
Thank you Rick for your help! I'm still stumbling a bit maybe because I don't understand this business around UTF-8 enough.
1. Is there a public-domain web site where I could direct my XML packet and then it will show the results of parsing my packet?
2. Is there some way to turn on UTF-8 for oHTTP, such as oHTTP.AddPostKey(STRCONV(CXML,10))
3. I feel I would be better off actually using your wwSoap masterpieces, and then maybe those will solve the UTF-8 problem automatically. What would be code sample to generate a packet like what I'm trying to do in wwSoap?

To answer your question, the XML I'm sending is generated like this:

CR=CHR(13)+CHR(10) CXML= '<?xml version="1.0" encoding="utf-8" ?>'+CR CXML=CXML+ '<YourMembership>'+CR CXML=CXML+ '<Version>1.95</Version>'+CR CXML=CXML+ '<ApiKey>00000000-0000-0000-0000-0000000000</ApiKey>'+CR CXML=CXML+ '<CallID>002</CallID>'+CR CXML=CXML+ '<SaPasscode>********</SaPasscode>'+CR CXML=CXML+ '<Call Method="Sa.Members.All.GetIDs">'+CR CXML=CXML+ '<Timestamp>2008-01-01 00:00:00</Timestamp>'+CR CXML=CXML+ '</Call>'+CR CXML=CXML+ '</YourMembership>' oHTTP = CREATEOBJECT("wwHttp") oHTTP.HTTPConnect("api.yourmembership.com",,,.T.) oHTTP.nHttpPostMode = 4 && XML oHTTP.AddPostKey(CXML) LCHTML="" LNTEXT=0 lnResult=oHTTP.HTTPGetEx("/",@lcHTML,@lnText)

What I'm getting back from their system is this packet:

<?xmlversion="1.0" encoding="utf-8" ?><YourMembership_Response><ErrCode>902</ErrCode><ExtendedErrorInfo></ExtendedErrorInfo><ErrDesc>XML packet is malformed or otherwise unreadable.</ErrDesc><XmlRequest><unnamed></unnamed></XmlRequest></YourMembership_Response>

Thanks in advance again!

What does the actual XML look like? You have the doc set to utf-8 encoding but is the document actually UTF-8 encided?

You should validate the XML by loading it into an XML dom - that will tell you if there's a problem. IOW, if there are extended characters (or quotes or ampersands >< etc) in the content that will make the XML document fail to validate.

+++ Rick ---


Viewing all 10393 articles
Browse latest View live