High Ascii problem with CFHTTP

2009-05-20 Thread John Drake

I know there are plenty of tags out there that strip/convert high ascii to low 
ascii - usually on the front end through form input or whatever.

The problem I'm encountering is this: I'm using CFHTTP to grab a page that has 
content with high ascii smart quotes, apostrophes, em dashes, etc.

Doing a straight cfhttp and spitting the page back out - ALL the high ascii is 
being converted to ASCII 65533 - so if I try doing find and replace it is 
pointless because it is the same character - dumb quotes are then appearing 
for quotes, em dashes, apostrophes, etc.

Is that because of the java based character set of cfhttp or something?

Any suggestions? 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:322661
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: High Ascii problem with CFHTTP

2009-05-20 Thread John M Bliss

Have you played with charset, The character encoding of the request,
including the URL query string and form or file data, and the response.

http://livedocs.adobe.com/coldfusion/8/htmldocs/Tags_g-h_09.html#3989287

On Wed, May 20, 2009 at 8:35 AM, John Drake thedangerman...@yahoo.comwrote:


 I know there are plenty of tags out there that strip/convert high ascii to
 low ascii - usually on the front end through form input or whatever.

 The problem I'm encountering is this: I'm using CFHTTP to grab a page that
 has content with high ascii smart quotes, apostrophes, em dashes, etc.

 Doing a straight cfhttp and spitting the page back out - ALL the high ascii
 is being converted to ASCII 65533 - so if I try doing find and replace it is
 pointless because it is the same character - dumb quotes are then
 appearing for quotes, em dashes, apostrophes, etc.

 Is that because of the java based character set of cfhttp or something?

 Any suggestions?

 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:322664
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: High Ascii problem with CFHTTP

2009-05-20 Thread John Drake

John,

That worked perfectly - thank you!  The default for CFHTTP is UTF-8 and 
changing it to windows-1252 gives me what I needed. 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:322669
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


I am having a problem with cfhttp receiving a cookie...

2005-02-07 Thread Troy Simpson
Hello all,

From a ColdFusion Application Server, I need to make an http POST
request to another webserver on behalf of the client browser.  The
results comes from the remote webserver in a cookie.  How can I get
that cookie value?

For example:
cfhttp url=https://www.website.com/bin/calc.cgi?add; port=80
method=post resolveurl=no useragent=MyColdFusionServer
charset=iso-8859-1 getasbinary=auto
 cfhttpparam type=formfield name=x value=100 /
 cfhttpparam type=formfield name=y value=200 /
/cfhttp

I should get a cookie back with the value of 300, but I do not see any
cookies when I use cfdump to dump the values in cfhttp.  In the cfhttp
Structure, I get Charset, ErrorDetail, Filecontent, Header, Mimetype,
Responseheader, Statuscode, and Text.

None of these fields have the Result Cookie that I am looking for.

I have found an example that is giving me the problem.  If I telnet to
a webserver and get the HEAD of a document, I can two cookies listed. 
Here is a real life example you can try:

[EMAIL PROTECTED]telnet webapps.lib.ncsu.edu 80
Trying 152.1.79.69...
Connected to appsvr.lib.ncsu.edu.
Escape character is '^]'.
HEAD /insidewood HTTP/1.1
Host:webapps.lib.ncsu.edu

HTTP/1.1 302 Found
Date: Mon, 07 Feb 2005 14:39:55 GMT
Server: Apache/2.0.52 (Unix) JRun/4.0
Set-cookie: WRAP_REFERER=http://webapps.lib.ncsu.edu/insidewood;
path=/; domain=.ncsu.edu
Set-cookie: WRAP16=.LOGOUT+NOUSER+NOAFFIL+152.1.79.69; path=/; domain=.ncsu.edu
Location: https://webauth.ncsu.edu/wrap-bin/was16.cgi?affil
Content-Type: text/html; charset=iso-8859-1

Connection closed by foreign host.

--
But if I user cfhttp, I am unable to see the two cookies listed in the
Header or ResponseHeader.

Any ideas?

Thanks,
Troy


-- 
Troy Simpson
  Applications Analyst/Programmer, OCPDBA, MCSE, SCSA
North Carolina State University Libraries
Campus Box 7111 | Raleigh | North Carolina
ph.919.515.3855 | fax.919.513.3330
E-mail: [EMAIL PROTECTED]

~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:193427
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: I am having a problem with cfhttp receiving a cookie...

2005-02-07 Thread Troy Simpson
Everyone can disregard this.  The remote webserver was redirecting
cfhttp to another webpage and in the process, I was losing my COOKIES.

So I had to set the redirect attribute to no and now I am getting my COOKIES.

Sincerely,
Troy

-- 
Troy Simpson
  Applications Analyst/Programmer, OCPDBA, MCSE, SCSA
North Carolina State University Libraries
Campus Box 7111 | Raleigh | North Carolina
ph.919.515.3855 | fax.919.513.3330
E-mail: [EMAIL PROTECTED]

~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:193449
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Problem with CFHTTP

2005-01-21 Thread Andrew Dixon
Hi All.

Not sure if anyone else has ever come across this, but we have a site
that uses an external XML feed to provide it with data. We access this
feed using CFHTTP which work fine, however sometimes the provider take
a while to response, 10 - 20 seconds, and when this happens CFHTTP
eats cpu time like crazy. Which then has an impact on are data parsing
time, particular when there are multiple instants of CFHTTP waiting
for a reply while overs are trying to process returned data.

Has anyone else ever come across this problem, or any ideas how to fix it?

Best Regards

Andrew.

~|
Logware: a new and convenient web-based time tracking application. Start 
tracking and documenting hours spent on a project or with a client with Logware 
today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:191333
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Column Attribute Problem in CFHTTP

2003-10-02 Thread Mark Leder
I'm working to retrieve a tab-delimited list of members from a remote server
using CFHTTP.
Problem is, the source list headers in the first row have spaces in between
some of the words.For example, first name.CFHTTP doesn't like column
names with spaces.I've tried specifying my own columns, such as
firstname, but then CFHTTP states that there are an incorrect number of
columns in the row.I'm only testing with one column.

Is there any work arounds, or is there another way to do this?

Thanks, Mark 


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: Problem with cfhttp

2002-05-19 Thread Dave Watts

 I thought maybe I was missing something. Glad to see someone 
 could reproduce the problem. Can Christine or anyone else at 
 MM that watches this list give us some ideas as to why this 
 is happening?

Apparently, this bug (the exact same situation, in fact, with the truncation
in the exact same location) has been logged on the beta bugtracker, so it'll
probably be fixed in the release. In the meantime, you'll just have to write
the content to disk, I guess.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444
__
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Problem with cfhttp

2002-05-17 Thread Ryan Kime

Ben,

I ran into the same thing with MX's cfhttp, but I was trying to get
slashdot.org's xml feed. So we know it's not just the xml feed at MM. It
seems to stop on any given character but it quits about the same place every
time. Local calls to xml files seem to work finesounds like the culprit
is cfhttp.


Ryan Kime

-Original Message-
From: Ben Densmore [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, May 16, 2002 2:54 PM
To: CF-Talk
Subject: Problem with cfhttp


Hi all,
 I was wondering if anyone has experienced this problem with cfhttp in CFMX?
I haven't tried it in CF5 so not sure if it's happening there too, but I am
using cfhttp to get the xml feed off of MM's site. I run the page that grabs
the xml file to get it to my local machine but for some reason it only gets
¾ of the page. So I keep getting an error that there isn't a root node
because there isn't a closing tag for the root. Anyone have any ideas what
might cause this?
 
Thanks,
Ben
__
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Problem with cfhttp

2002-05-17 Thread Ben Densmore

Thanks for the info Ryan,
 I wonder if this should be reported as a bug, if it hasn't been all
ready.

Ben

-Original Message-
From: Ryan Kime [mailto:[EMAIL PROTECTED]] 
Sent: Friday, May 17, 2002 12:11 PM
To: CF-Talk
Subject: RE: Problem with cfhttp

Ben,

I ran into the same thing with MX's cfhttp, but I was trying to get
slashdot.org's xml feed. So we know it's not just the xml feed at MM. It
seems to stop on any given character but it quits about the same place
every
time. Local calls to xml files seem to work finesounds like the
culprit
is cfhttp.


Ryan Kime

-Original Message-
From: Ben Densmore [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, May 16, 2002 2:54 PM
To: CF-Talk
Subject: Problem with cfhttp


Hi all,
 I was wondering if anyone has experienced this problem with cfhttp in
CFMX?
I haven't tried it in CF5 so not sure if it's happening there too, but I
am
using cfhttp to get the xml feed off of MM's site. I run the page that
grabs
the xml file to get it to my local machine but for some reason it only
gets
¾ of the page. So I keep getting an error that there isn't a root node
because there isn't a closing tag for the root. Anyone have any ideas
what
might cause this?
 
Thanks,
Ben

__
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Problem with cfhttp

2002-05-16 Thread Ben Densmore

Hi all,
 I was wondering if anyone has experienced this problem with cfhttp in
CFMX? I haven’t tried it in CF5 so not sure if it’s happening there too,
but I am using cfhttp to get the xml feed off of MM’s site. I run the
page that grabs the xml file to get it to my local machine but for some
reason it only gets ¾ of the page. So I keep getting an error that there
isn’t a root node because there isn’t a closing tag for the root. Anyone
have any ideas what might cause this?
 
Thanks,
Ben


__
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Problem with cfhttp

2002-05-16 Thread Dave Watts

 I was wondering if anyone has experienced this problem 
 with cfhttp in CFMX? I haven't tried it in CF5 so not 
 sure if it's happening there too, but I am using cfhttp 
 to get the xml feed off of MM's site. I run the page that 
 grabs the xml file to get it to my local machine but for 
 some reason it only gets ¾ of the page. So I keep getting 
 an error that there isn't a root node because there isn't 
 a closing tag for the root. Anyone have any ideas what 
 might cause this?

OK. This is an odd one. I just tried the same thing, and I got the same kind
of truncation - not even 3/4ths of the page, but 2261 out of 7652
characters. However, the CFHTTP operation itself was actually returning the
entire string of 7652 characters - if I used Len(CFHTTP.FileContent), I got
that number, and if I used CFHTTP to write the content to disk, that's how
big the file was. I thought it might be an invalid content length header
from the MM server, but that's not the case. Also, I've been able to
retrieve significantly longer strings with CFHTTP without truncation. So,
next, I thought it might be an invalid character, but it doesn't appear to
be, since I can get the raw text just fine with command-line HTTP clients or
with IE.

So, I have no idea. Just wanted to let you know you're not alone.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444
__
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Problem with cfhttp

2002-05-16 Thread Ben Densmore

Thanks Dave,
 I thought maybe I was missing something. Glad to see someone could
reproduce the problem. Can Christine or anyone else at MM that watches
this list give us some ideas as to why this is happening?

Ben

-Original Message-
From: Dave Watts [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, May 16, 2002 6:27 PM
To: CF-Talk
Subject: RE: Problem with cfhttp

 I was wondering if anyone has experienced this problem 
 with cfhttp in CFMX? I haven't tried it in CF5 so not 
 sure if it's happening there too, but I am using cfhttp 
 to get the xml feed off of MM's site. I run the page that 
 grabs the xml file to get it to my local machine but for 
 some reason it only gets ¾ of the page. So I keep getting 
 an error that there isn't a root node because there isn't 
 a closing tag for the root. Anyone have any ideas what 
 might cause this?

OK. This is an odd one. I just tried the same thing, and I got the same
kind
of truncation - not even 3/4ths of the page, but 2261 out of 7652
characters. However, the CFHTTP operation itself was actually returning
the
entire string of 7652 characters - if I used Len(CFHTTP.FileContent), I
got
that number, and if I used CFHTTP to write the content to disk, that's
how
big the file was. I thought it might be an invalid content length header
from the MM server, but that's not the case. Also, I've been able to
retrieve significantly longer strings with CFHTTP without truncation.
So,
next, I thought it might be an invalid character, but it doesn't appear
to
be, since I can get the raw text just fine with command-line HTTP
clients or
with IE.

So, I have no idea. Just wanted to let you know you're not alone.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444

__
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: Problem with cfhttp

2001-06-27 Thread Michael Lugassy

Here is my help on the subject for someone else, but maybe can help you:

JM,

you must seperate between the two tasks:
1- first fetch for the page using cfhttp, then output
cfoutput#cfhttp.filecontent#/cfoutput
2- write to another file using CFFILE.

As I see it, you do have a problem of permissions, timeout or inaccessive
file.

what is the output when you're copy-paste the scheduled cf page into IE?
try to get http://iberc.fasturn.com/iberc/autoproc/wl-em.cfm
to output the desired result on a regular browser, then try from the local
server (again,
using a browser, because scheduled tasks doesn't show results or problems as
they occur).

if you get connection Failure I would suggest to check:
1. if the file u'r calling using cfhttp actually exists on the remote
server.
2. if the fil

start by calling a simple URL like: http://www.yahoo.com
and disply the results cfoutput#cfhttp.filecontent#/cfoutput
if this doesn't work, I guess you have some kind of firewall restrictions
and/or cfhttp limitation?
also, while trying, be sure to have CF 4.5.1 SP 2 as the cfhttp tag has a
known problem of eating
lots of ram without the need to.

Tell me what u come up with, I'll try to help.


Thanks,

Michael
- Original Message -
From: JM Ivler [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, June 26, 2001 10:21 PM
Subject: Re: Scheduled Tasks and CFAS service


 I was following a set of posts from April on CF and the task scheduler
with
 connection Refused errors and you indicated that you had some
familiarity
 with the application and what may generate that error.

 I have a page that does one thing... it writes out: Hellowbrwrold
 when the scheduler runs I have it outputting to a file called temp and it
 contains one line Connection Failure. I have loaded the task into the CF
 administer using operation: httprequest Port: 80 URL:
 http://iberc.fasturn.com/iberc/autoproc/wl-em.cfm
 No username, no password, no timeout, no proxyserver.

 any ideas on why it's failing?






Thanks,

Michael
- Original Message -
From: Tom Espen Pedersen [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Thursday, June 21, 2001 1:24 PM
Subject: Problem with cfhttp


 We've encountered a problem on one of our customers servers.
 We use cfhttp to grab a wddx packet from an outside the house server.
 This has worked perfectly up until tuesday 19th.
 The error we get is : Connection Failure

 we suspected this to be a bug in CF 4.5 so we upgraded the server to 4.5.1
 sp2.

 Has anyone encountered errors like this ? and how did you solve them ?
 A reinstall of CF server is the last thing we wanna do since they've got
 alot of services running on that machine.

 Sincirely
 Tom Espen Pedersen
 [EMAIL PROTECTED]




~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Problem with cfhttp

2001-06-21 Thread Tom Espen Pedersen

We've encountered a problem on one of our customers servers.
We use cfhttp to grab a wddx packet from an outside the house server.
This has worked perfectly up until tuesday 19th.
The error we get is : Connection Failure

we suspected this to be a bug in CF 4.5 so we upgraded the server to 4.5.1
sp2.

Has anyone encountered errors like this ? and how did you solve them ?
A reinstall of CF server is the last thing we wanna do since they've got
alot of services running on that machine.

Sincirely
Tom Espen Pedersen
[EMAIL PROTECTED]



~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Form submission problem via CFHTTP

2001-03-22 Thread Michailov, Dimitar

Hello all:

Here's a problem that I've been tackling for a while now and I can't seem to
find the solution. I would like to interact with SprintPCS's module for
sending short text messages to my personal phone. 

Having the form on my site works ok when filled out and submitted  (the
phone numbers below are changed from the original ones):

form
action="http://www.messaging.sprintpcs.com/sms/check_message_syntax.html"
method="POST"
input type="hidden" name="mobilenum"  value="30"
input name="callbacknum" size="10" maxlength="10"
type="TEXT" value="301222"
textarea wrap="VIRTUAL" name="message" cols="21"
rows="5"/textarea
input type="submit"
/form


However, I would like to submit this via CFHTTP so I can control the output
but SprintPCS system responds that the fields I am passing are undefined.
Here's the code I am using:


cfhttp
url="http://www.messaging.sprintpcs.com/sms/check_message_syntax.html"
method="POST" useragent="Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0)"
resolveurl="yes" timeout="60"
cfhttpparam type="FORMFIELD" name="message" value="This is a test!
Let's try if this works. If it does, this would be the message!"  !--- No
more than 100 characters ---
cfhttpparam type="FORMFIELD" name="mobilenum" value="30"
cfhttpparam type="FORMFIELD" name="callbacknum" value="301222"
cfhttpparam type="FORMFIELD" name="Submit" value=""
/cfhttp


Does anyone have any ideas why the CFHTTP code does not work? Any
help/solutions would be greatly appreciated.

Thanks,
Dimo Michailov
Certified Cold Fusion 4.5 Web Developer
USA-IT, Inc.
[EMAIL PROTECTED]


~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Form submission problem via CFHTTP

2001-03-22 Thread Garza, Jeff

One thing that I noticed is that the original form had a name...

form name="frm" method="post" action="check_message_syntax.html"

You might want to try giving your form a name that matches as the accepting
page might be looking for that.

Jeff Garza
Web Developer/Webmaster
Spectrum Astro, Inc.
480.892.8200

[EMAIL PROTECTED]
http://www.spectrumastro.com



-Original Message-
From: Michailov, Dimitar [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, March 22, 2001 10:01 AM
To: CF-Talk
Subject: Form submission problem via CFHTTP


Hello all:

Here's a problem that I've been tackling for a while now and I can't seem to
find the solution. I would like to interact with SprintPCS's module for
sending short text messages to my personal phone. 

Having the form on my site works ok when filled out and submitted  (the
phone numbers below are changed from the original ones):

form
action="http://www.messaging.sprintpcs.com/sms/check_message_syntax.html"
method="POST"
input type="hidden" name="mobilenum"  value="30"
input name="callbacknum" size="10" maxlength="10"
type="TEXT" value="301222"
textarea wrap="VIRTUAL" name="message" cols="21"
rows="5"/textarea
input type="submit"
/form


However, I would like to submit this via CFHTTP so I can control the output
but SprintPCS system responds that the fields I am passing are undefined.
Here's the code I am using:


cfhttp
url="http://www.messaging.sprintpcs.com/sms/check_message_syntax.html"
method="POST" useragent="Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0)"
resolveurl="yes" timeout="60"
cfhttpparam type="FORMFIELD" name="message" value="This is a test!
Let's try if this works. If it does, this would be the message!"  !--- No
more than 100 characters ---
cfhttpparam type="FORMFIELD" name="mobilenum" value="30"
cfhttpparam type="FORMFIELD" name="callbacknum" value="301222"
cfhttpparam type="FORMFIELD" name="Submit" value=""
/cfhttp


Does anyone have any ideas why the CFHTTP code does not work? Any
help/solutions would be greatly appreciated.

Thanks,
Dimo Michailov
Certified Cold Fusion 4.5 Web Developer
USA-IT, Inc.
[EMAIL PROTECTED]
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Form submission problem via CFHTTP

2001-03-22 Thread Michailov, Dimitar

How do you specify the name of a form when you submit via CFHTTP??

DImo

-Original Message-
From: Garza, Jeff [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 22, 2001 12:24 PM
To: CF-Talk
Subject: RE: Form submission problem via CFHTTP


One thing that I noticed is that the original form had a name...

form name="frm" method="post" action="check_message_syntax.html"

You might want to try giving your form a name that matches as the accepting
page might be looking for that.

Jeff Garza
Web Developer/Webmaster
Spectrum Astro, Inc.
480.892.8200

[EMAIL PROTECTED]
http://www.spectrumastro.com



-Original Message-
From: Michailov, Dimitar [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, March 22, 2001 10:01 AM
To: CF-Talk
Subject: Form submission problem via CFHTTP


Hello all:

Here's a problem that I've been tackling for a while now and I can't seem to
find the solution. I would like to interact with SprintPCS's module for
sending short text messages to my personal phone. 

Having the form on my site works ok when filled out and submitted  (the
phone numbers below are changed from the original ones):

form
action="http://www.messaging.sprintpcs.com/sms/check_message_syntax.html"
method="POST"
input type="hidden" name="mobilenum"  value="30"
input name="callbacknum" size="10" maxlength="10"
type="TEXT" value="301222"
textarea wrap="VIRTUAL" name="message" cols="21"
rows="5"/textarea
input type="submit"
/form


However, I would like to submit this via CFHTTP so I can control the output
but SprintPCS system responds that the fields I am passing are undefined.
Here's the code I am using:


cfhttp
url="http://www.messaging.sprintpcs.com/sms/check_message_syntax.html"
method="POST" useragent="Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0)"
resolveurl="yes" timeout="60"
cfhttpparam type="FORMFIELD" name="message" value="This is a test!
Let's try if this works. If it does, this would be the message!"  !--- No
more than 100 characters ---
cfhttpparam type="FORMFIELD" name="mobilenum" value="30"
cfhttpparam type="FORMFIELD" name="callbacknum" value="301222"
cfhttpparam type="FORMFIELD" name="Submit" value=""
/cfhttp


Does anyone have any ideas why the CFHTTP code does not work? Any
help/solutions would be greatly appreciated.

Thanks,
Dimo Michailov
Certified Cold Fusion 4.5 Web Developer
USA-IT, Inc.
[EMAIL PROTECTED]
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Form submission problem via CFHTTP

2001-03-22 Thread Garza, Jeff

This worked, returned an invalid phone number...

cfhttp
url="http://www.messaging.sprintpcs.com/sms/check_message_syntax.html"
 port="80"
 method="POST"
 useragent="Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0)"
 resolveurl="yes"
 timeout="60"
cfhttpparam type="FORMFIELD" name="message" value="This is a test! Let's
try if this works. If it does, this would be the message!" 
cfhttpparam type="FORMFIELD" name="mobilenum" value="30"
cfhttpparam type="FORMFIELD" name="callbacknum" value="301222"
/cfhttp

CFOUTPUT#CFHTTP.FILECONTENT#/CFOUTPUT

I almost forgot that you almost always need to specify the port number...
Also note that I removed the CFHTTPPARAM for the submit button.

HTH

Jeff Garza
Web Developer/Webmaster
Spectrum Astro, Inc.
480.892.8200

[EMAIL PROTECTED]
http://www.spectrumastro.com



-Original Message-----
From: Michailov, Dimitar [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, March 22, 2001 12:15 PM
To: CF-Talk
Subject: RE: Form submission problem via CFHTTP


How do you specify the name of a form when you submit via CFHTTP??

DImo

-----Original Message-
From: Garza, Jeff [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 22, 2001 12:24 PM
To: CF-Talk
Subject: RE: Form submission problem via CFHTTP


One thing that I noticed is that the original form had a name...

form name="frm" method="post" action="check_message_syntax.html"

You might want to try giving your form a name that matches as the accepting
page might be looking for that.

Jeff Garza
Web Developer/Webmaster
Spectrum Astro, Inc.
480.892.8200

[EMAIL PROTECTED]
http://www.spectrumastro.com



-Original Message-
From: Michailov, Dimitar [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, March 22, 2001 10:01 AM
To: CF-Talk
Subject: Form submission problem via CFHTTP


Hello all:

Here's a problem that I've been tackling for a while now and I can't seem to
find the solution. I would like to interact with SprintPCS's module for
sending short text messages to my personal phone. 

Having the form on my site works ok when filled out and submitted  (the
phone numbers below are changed from the original ones):

form
action="http://www.messaging.sprintpcs.com/sms/check_message_syntax.html"
method="POST"
input type="hidden" name="mobilenum"  value="30"
input name="callbacknum" size="10" maxlength="10"
type="TEXT" value="301222"
textarea wrap="VIRTUAL" name="message" cols="21"
rows="5"/textarea
input type="submit"
/form


However, I would like to submit this via CFHTTP so I can control the output
but SprintPCS system responds that the fields I am passing are undefined.
Here's the code I am using:


cfhttp
url="http://www.messaging.sprintpcs.com/sms/check_message_syntax.html"
method="POST" useragent="Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0)"
resolveurl="yes" timeout="60"
cfhttpparam type="FORMFIELD" name="message" value="This is a test!
Let's try if this works. If it does, this would be the message!"  !--- No
more than 100 characters ---
cfhttpparam type="FORMFIELD" name="mobilenum" value="30"
cfhttpparam type="FORMFIELD" name="callbacknum" value="301222"
cfhttpparam type="FORMFIELD" name="Submit" value=""
/cfhttp


Does anyone have any ideas why the CFHTTP code does not work? Any
help/solutions would be greatly appreciated.

Thanks,
Dimo Michailov
Certified Cold Fusion 4.5 Web Developer
USA-IT, Inc.
[EMAIL PROTECTED]
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



problem with CFHTTP

2000-03-27 Thread jonathan hamner

Please see the code that says URL="TestAction.cfm", I
am trying to call this file with CFHTTP
**
Hi List,

Please help me. I am about to pull my hair. I don't
get an error,but I do not get the desired output.

I have the three files below, please let me know why
the third file(testAction.cfm) never gets executed. I
have put break points in the file and went into debug.
The program never goes there at all.

Also, for the purpose of printing the testAction.cfm
in CFHTTP.FileContents is there a better way of having
the testAction executed and I get the html of that
file and my ultimate purpose is to send an email of
the executed page as an attachment.

Please let me know if you need any other information.
Also
let me know if I am on the wrong street?


THanks.
TestForm.cfm

body
form action="test.cfm" method="post"
input type="text" name="id"
input type="submit" value="submit"

/form


/body
Test.cfm
cfparam name="id" default="123"
cfset id = form.id


cfhttp url="testAction.cfm"
method="POST"
resolveurl="true"
throwonerror="yes"

cfhttpparam type="FORMFIELD" name="id"
value="#form.id#" 

/cfhttp


brTESTING:cfoutput#CFHTTP.FileContent#/cfoutputbrbrbrbr

/body

TestAction.cfm**
body

h1
cfparam name="id" default="222"
cfset id = form.id
cfoutput
This is a test!brBr
Test is successful!br
This is the id:#id#br
/h1

/cfoutput
/body
***

__
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com
--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.