Re: [WebDNA] HTTP post help

This WebDNA talk-list message is from

2012


It keeps the original formatting.
numero = 108131
interpreted = N
texte = --Apple-Mail=_44D2972F-CAE6-4085-BE26-E6ECC26272EF Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=iso-8859-1 I haven't tried anything with Facebook yet, but this is generally what I = use for POST inside the TCP context. I usually have better luck sending = variables in the body under the headers rather than as a string. I = would also drop the 'www' from the host. Hope this helps This is what I use when I post with TCP [text]crlf=3D[unurl]%0D%0A[/unurl][/text] [text]connectHost=3Dfacebook.com[/text] [text]useSSL=3DT[/text] [text]scopeURI=3D/dialog/oauth[/text] = [text]params=3Dclient_id=3D[MyID]&redirect_uri=3D[MyReturnURL]&scope=3Dema= il,read_stream[/text] [text]call_response=3D[!] [/!][TCPconnect host=3D[connectHost][showif = [useSSL]=3DT]&SSL=3DT&port=3D443[/showif]][!] [/!][TCPsend skipheader=3DT]POST [scopeURI] HTTP/1.0[crlf][!]=09 [/!]Host: [connectHost][crlf][!] [/!]Content-Length: [countchars][params][/countChars][crlf][!] [/!]USER-AGENT: Mozilla/4.0 (compatible; MSIE 5.01; Windows NT = 5.0)[crlf][!] [/!][crlf][!] [/!][params][crlf][!] [/!][/TCPSend][!] [/!][/TCPconnect][/text] [!]** Reveal this for testing purposes **[/!] =20 [!]


[/!] On Jan 19, 2012, at 5:04 PM, Daniel Meola wrote: > port=3D443&ssl=3Dt sounds right, we use that in our PayPal code. I'm = afraid I don't have any experience with the Facebook API and don't have = access to test it. Generally with TCPConnect it takes me a lot of trial = and error. Hopefully somebody else with Facebook experience can chime = in. >=20 > Good luck,=20 > Daniel Meola > 301-486-0901 > daniel@knifecenter.com >=20 >=20 >=20 > On Thu, Jan 19, 2012 at 4:49 PM, Dave Stengel = wrote: > Thanks for the quick reply. I get an error unable to connect to > facebook. Could this be because the URL is https: ? I added > port=3D443&ssl=3Dt and gt the following error: >=20 > Error: couldn't connect to host [https://www.facebook.com] >=20 > Dave > ____________________ >=20 > On Thu, Jan 19, 2012 at 1:24 PM, Daniel Meola = wrote: > > Try this: > > > > [tcpconnect host=3Dwww.facebook.com&port=3D80] > > [tcpsend]POST = /dialog/oauth?client_id=3D[MyID]&redirect_uri=3D[MyReturnURL]&scope=3Demai= l,read_stream HTTP/1.0[unurl]%0D%0A%0D%0A[/unurl][/tcpsend] > > [/tcpconnect] > > > > Hope it helps, > > > > Daniel Meola > > 301-486-0901 > > daniel@knifecenter.com > > > > > > > > On Thu, Jan 19, 2012 at 4:20 PM, Dave Stengel = wrote: > >> > >> Can anyone help me with a http post issue. I've never done this = before > >> but I'm trying to post: > >> > >> > >> = https://www.facebook.com/dialog/oauth?client_id=3D[MyID]&redirect_uri=3D[M= yReturnURL]&scope=3Demail,read_stream > >> > >> as webdna code and I'm not sure were to start. Would I use = TCPCONNECT > >> to do this. Any direction would be appreciated. > >> > >> > >> Dave > >> --------------------------------------------------------- > >> This message is sent to you because you are subscribed to > >> the mailing list . > >> To unsubscribe, E-mail to: > >> archives: http://mail.webdna.us/list/talk@webdna.us > >> Bug Reporting: support@webdna.us > > > > > > --------------------------------------------------------- This = message is > > sent to you because you are subscribed to the mailing list . To = unsubscribe, > > E-mail to: archives: http://mail.webdna.us/list/talk@webdna.us Bug > > Reporting: support@webdna.us >=20 >=20 >=20 > -- > Dave Stengel >=20 > http://www.mobilinksoftware.com > 209.820.1300 > dave@mobilinkpro.com > --------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us > Bug Reporting: support@webdna.us >=20 > --------------------------------------------------------- This message = is sent to you because you are subscribed to the mailing list . To = unsubscribe, E-mail to: archives: = http://mail.webdna.us/list/talk@webdna.us Bug Reporting: = support@webdna.us --Apple-Mail=_44D2972F-CAE6-4085-BE26-E6ECC26272EF Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=iso-8859-1 I = haven't tried anything with Facebook yet, but this is generally what I = use for POST inside the TCP context.  I usually have better luck = sending variables in the body under the headers rather than as a string. =  I would also drop the 'www' from the host.  Hope this = helps


This is what I use when I post = with = TCP

[text]crlf=3D[unurl]%0D%0A[/unurl][/text]
[text]connectHost=3Dfacebook.com[/text]
[text]useSSL=3DT[/= text]
[text]scopeURI=3D/dialog/oauth[/text]
[text]para= ms=3Dclient_id=3D[MyID]&redirect_uri=3D[MyReturnURL]&scope=3Demail= ,read_stream[/text]

[text]call_response=3D[!]
    [/!][TCPconnect host=3D[connectHost][showif = [useSSL]=3DT]&SSL=3DT&port=3D443[/showif]][!]
  =   [/!][TCPsend skipheader=3DT]POST [scopeURI] = HTTP/1.0[crlf][!]
    [/!]Host: = [connectHost][crlf][!]
    [/!]Content-Length: = [countchars][params][/countChars][crlf][!]
    = [/!]USER-AGENT: Mozilla/4.0 (compatible; MSIE 5.01; Windows NT = 5.0)[crlf][!]
    [/!][crlf][!]
  =   [/!][params][crlf][!]
    = [/!][/TCPSend][!]
    = [/!][/TCPconnect][/text]


[!]** = Reveal this for testing purposes **[/!] =  
[!]
<br /><br = />
<textarea cols=3D"100" rows=3D"5" = wrap=3D"off">[call_response]</textarea><br = />
[/!]




On Jan 19, 2012, at 5:04 PM, Daniel Meola = wrote:

port=3D443&ssl=3Dt sounds right, we use that in our = PayPal code. I'm afraid I don't have any experience with the Facebook = API and don't have access to test it. Generally with TCPConnect it takes = me a lot of trial and error. Hopefully somebody else with Facebook = experience can chime in.

Good luck, 
Daniel = Meola



On Thu, Jan 19, 2012 at 4:49 PM, Dave = Stengel <dave@mobilinkpro.com> = wrote:
Thanks for the quick reply. I get an error unable to connect to
facebook. Could this be because the URL is https: ? I added
port=3D443&ssl=3Dt and gt the following error:

Error: couldn't connect to host [https://www.facebook.com]

Dave
____________________

On Thu, Jan 19, 2012 at 1:24 PM, Daniel Meola <daniel@knifecenter.com> = wrote:
> Try this:
>
> [tcpconnect host=3Dwww.facebook.com&port=3D80]
> = [tcpsend]POST /dialog/oauth?client_id=3D[MyID]&redirect_uri=3D[My= ReturnURL]&scope=3Demail,read_stream HTTP/1.0[unurl]%0D%0A%0D%0A[= /unurl][/tcpsend]
> [/tcpconnect]
>
> Hope it helps,
>
> Daniel Meola
> 301-486-0901
> daniel@knifecenter.com
>
>
>
> On Thu, Jan 19, 2012 at 4:20 PM, Dave Stengel <dave@mobilinkpro.com> = wrote:
>>
>> Can anyone help me with a http post issue. I've never done this = before
>> but I'm trying to post:
>>
>>
>> https://www.facebook.com/dialog/oauth?client_id=3D[MyID]= &redirect_uri=3D[MyReturnURL]&scope=3Demail,read_stream
>>
>> as webdna code and I'm not sure were to start. Would I use = TCPCONNECT
>> to do this. Any direction would be appreciated.
>>
>>
>> Dave
>> ---------------------------------------------------------
>> This message is sent to you because you are subscribed to
>> the mailing list <talk@webdna.us>.
>> To unsubscribe, E-mail to: <talk-leave@webdna.us>
>> archives: http://mail.webdna.us/list/talk@webdna.us
>> Bug Reporting: support@webdna.us
>
>
> --------------------------------------------------------- This = message is
> sent to you because you are subscribed to the mailing = list . To unsubscribe,
> E-mail to: archives: http://mail.webdna.us/list/talk@webdna.us Bug
> Reporting: support@webdna.us



--
Dave Stengel

http://www.mobilinksoftware.com
209.820.1300
dave@mobilinkpro.com
---------------------------------------------------------
= This message is sent to you because you are subscribed to
the mailing list <talk@webdna.us>.
To unsubscribe, E-mail to: <talk-leave@webdna.us>
archives: http://mail.webdna.us/list/talk@webdna.us
Bug Reporting: support@webdna.us

--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: archives: http://mail.webdna.us/l= ist/talk@webdna.us Bug Reporting: support@webdna.us

= --Apple-Mail=_44D2972F-CAE6-4085-BE26-E6ECC26272EF-- Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] HTTP post help (Olin Lagon 2012)
  2. Re: [WebDNA] HTTP post help (aaronmichaelmusic@gmail.com 2012)
  3. Re: [WebDNA] HTTP post help (Dave Stengel 2012)
  4. Re: [WebDNA] HTTP post help (Olin Lagon 2012)
  5. Re: [WebDNA] HTTP post help (aaronmichaelmusic@gmail.com 2012)
  6. Re: [WebDNA] HTTP post help (aaronmichaelmusic@gmail.com 2012)
  7. Re: [WebDNA] HTTP post help (Daniel Meola 2012)
  8. Re: [WebDNA] HTTP post help (Dave Stengel 2012)
  9. Re: [WebDNA] HTTP post help (Daniel Meola 2012)
  10. [WebDNA] HTTP post help (Dave Stengel 2012)
--Apple-Mail=_44D2972F-CAE6-4085-BE26-E6ECC26272EF Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=iso-8859-1 I haven't tried anything with Facebook yet, but this is generally what I = use for POST inside the TCP context. I usually have better luck sending = variables in the body under the headers rather than as a string. I = would also drop the 'www' from the host. Hope this helps This is what I use when I post with TCP [text]crlf=3D[unurl]%0D%0A[/unurl][/text] [text]connectHost=3Dfacebook.com[/text] [text]useSSL=3DT[/text] [text]scopeURI=3D/dialog/oauth[/text] = [text]params=3Dclient_id=3D[MyID]&redirect_uri=3D[MyReturnURL]&scope=3Dema= il,read_stream[/text] [text]call_response=3D[!] [/!][TCPconnect host=3D[connectHost][showif = [useSSL]=3DT]&SSL=3DT&port=3D443[/showif]][!] [/!][TCPsend skipheader=3DT]POST [scopeURI] HTTP/1.0[crlf][!]=09 [/!]Host: [connectHost][crlf][!] [/!]Content-Length: [countchars][params][/countChars][crlf][!] [/!]USER-AGENT: Mozilla/4.0 (compatible; MSIE 5.01; Windows NT = 5.0)[crlf][!] [/!][crlf][!] [/!][params][crlf][!] [/!][/TCPSend][!] [/!][/TCPconnect][/text] [!]** Reveal this for testing purposes **[/!] =20 [!]


[/!] On Jan 19, 2012, at 5:04 PM, Daniel Meola wrote: > port=3D443&ssl=3Dt sounds right, we use that in our PayPal code. I'm = afraid I don't have any experience with the Facebook API and don't have = access to test it. Generally with TCPConnect it takes me a lot of trial = and error. Hopefully somebody else with Facebook experience can chime = in. >=20 > Good luck,=20 > Daniel Meola > 301-486-0901 > daniel@knifecenter.com >=20 >=20 >=20 > On Thu, Jan 19, 2012 at 4:49 PM, Dave Stengel = wrote: > Thanks for the quick reply. I get an error unable to connect to > facebook. Could this be because the URL is https: ? I added > port=3D443&ssl=3Dt and gt the following error: >=20 > Error: couldn't connect to host [https://www.facebook.com] >=20 > Dave > ____________________ >=20 > On Thu, Jan 19, 2012 at 1:24 PM, Daniel Meola = wrote: > > Try this: > > > > [tcpconnect host=3Dwww.facebook.com&port=3D80] > > [tcpsend]POST = /dialog/oauth?client_id=3D[MyID]&redirect_uri=3D[MyReturnURL]&scope=3Demai= l,read_stream HTTP/1.0[unurl]%0D%0A%0D%0A[/unurl][/tcpsend] > > [/tcpconnect] > > > > Hope it helps, > > > > Daniel Meola > > 301-486-0901 > > daniel@knifecenter.com > > > > > > > > On Thu, Jan 19, 2012 at 4:20 PM, Dave Stengel = wrote: > >> > >> Can anyone help me with a http post issue. I've never done this = before > >> but I'm trying to post: > >> > >> > >> = https://www.facebook.com/dialog/oauth?client_id=3D[MyID]&redirect_uri=3D[M= yReturnURL]&scope=3Demail,read_stream > >> > >> as webdna code and I'm not sure were to start. Would I use = TCPCONNECT > >> to do this. Any direction would be appreciated. > >> > >> > >> Dave > >> --------------------------------------------------------- > >> This message is sent to you because you are subscribed to > >> the mailing list . > >> To unsubscribe, E-mail to: > >> archives: http://mail.webdna.us/list/talk@webdna.us > >> Bug Reporting: support@webdna.us > > > > > > --------------------------------------------------------- This = message is > > sent to you because you are subscribed to the mailing list . To = unsubscribe, > > E-mail to: archives: http://mail.webdna.us/list/talk@webdna.us Bug > > Reporting: support@webdna.us >=20 >=20 >=20 > -- > Dave Stengel >=20 > http://www.mobilinksoftware.com > 209.820.1300 > dave@mobilinkpro.com > --------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us > Bug Reporting: support@webdna.us >=20 > --------------------------------------------------------- This message = is sent to you because you are subscribed to the mailing list . To = unsubscribe, E-mail to: archives: = http://mail.webdna.us/list/talk@webdna.us Bug Reporting: = support@webdna.us --Apple-Mail=_44D2972F-CAE6-4085-BE26-E6ECC26272EF Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=iso-8859-1 I = haven't tried anything with Facebook yet, but this is generally what I = use for POST inside the TCP context.  I usually have better luck = sending variables in the body under the headers rather than as a string. =  I would also drop the 'www' from the host.  Hope this = helps


This is what I use when I post = with = TCP

[text]crlf=3D[unurl]%0D%0A[/unurl][/text]
[text]connectHost=3Dfacebook.com[/text]
[text]useSSL=3DT[/= text]
[text]scopeURI=3D/dialog/oauth[/text]
[text]para= ms=3Dclient_id=3D[MyID]&redirect_uri=3D[MyReturnURL]&scope=3Demail= ,read_stream[/text]

[text]call_response=3D[!]
    [/!][TCPconnect host=3D[connectHost][showif = [useSSL]=3DT]&SSL=3DT&port=3D443[/showif]][!]
  =   [/!][TCPsend skipheader=3DT]POST [scopeURI] = HTTP/1.0[crlf][!]
    [/!]Host: = [connectHost][crlf][!]
    [/!]Content-Length: = [countchars][params][/countChars][crlf][!]
    = [/!]USER-AGENT: Mozilla/4.0 (compatible; MSIE 5.01; Windows NT = 5.0)[crlf][!]
    [/!][crlf][!]
  =   [/!][params][crlf][!]
    = [/!][/TCPSend][!]
    = [/!][/TCPconnect][/text]


[!]** = Reveal this for testing purposes **[/!] =  
<br /><br = />
<textarea cols=3D"100" rows=3D"5" = wrap=3D"off">[call_response]</textarea><br = />
[/!]




On Jan 19, 2012, at 5:04 PM, Daniel Meola = wrote:

port=3D443&ssl=3Dt sounds right, we use that in our = PayPal code. I'm afraid I don't have any experience with the Facebook = API and don't have access to test it. Generally with TCPConnect it takes = me a lot of trial and error. Hopefully somebody else with Facebook = experience can chime in.

Good luck, 
Daniel = Meola



On Thu, Jan 19, 2012 at 4:49 PM, Dave = Stengel <dave@mobilinkpro.com> = wrote:
Thanks for the quick reply. I get an error unable to connect to
facebook. Could this be because the URL is https: ? I added
port=3D443&ssl=3Dt and gt the following error:

Error: couldn't connect to host [https://www.facebook.com]

Dave
____________________

On Thu, Jan 19, 2012 at 1:24 PM, Daniel Meola <daniel@knifecenter.com> = wrote:
> Try this:
>
> [tcpconnect host=3Dwww.facebook.com&port=3D80]
> = [tcpsend]POST /dialog/oauth?client_id=3D[MyID]&redirect_uri=3D[My= ReturnURL]&scope=3Demail,read_stream HTTP/1.0[unurl]%0D%0A%0D%0A[= /unurl][/tcpsend]
> [/tcpconnect]
>
> Hope it helps,
>
> Daniel Meola
> 301-486-0901
> daniel@knifecenter.com
>
>
>
> On Thu, Jan 19, 2012 at 4:20 PM, Dave Stengel <dave@mobilinkpro.com> = wrote:
>>
>> Can anyone help me with a http post issue. I've never done this = before
>> but I'm trying to post:
>>
>>
>> https://www.facebook.com/dialog/oauth?client_id=3D[MyID]= &redirect_uri=3D[MyReturnURL]&scope=3Demail,read_stream
>>
>> as webdna code and I'm not sure were to start. Would I use = TCPCONNECT
>> to do this. Any direction would be appreciated.
>>
>>
>> Dave
>> ---------------------------------------------------------
>> This message is sent to you because you are subscribed to
>> the mailing list <talk@webdna.us>.
>> To unsubscribe, E-mail to: <talk-leave@webdna.us>
>> archives: http://mail.webdna.us/list/talk@webdna.us
>> Bug Reporting: support@webdna.us
>
>
> --------------------------------------------------------- This = message is
> sent to you because you are subscribed to the mailing = list . To unsubscribe,
> E-mail to: archives: http://mail.webdna.us/list/talk@webdna.us Bug
> Reporting: support@webdna.us



--
Dave Stengel

http://www.mobilinksoftware.com
209.820.1300
dave@mobilinkpro.com
---------------------------------------------------------
= This message is sent to you because you are subscribed to
the mailing list <talk@webdna.us>.
To unsubscribe, E-mail to: <talk-leave@webdna.us>
archives: http://mail.webdna.us/list/talk@webdna.us
Bug Reporting: support@webdna.us

--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: archives: http://mail.webdna.us/l= ist/talk@webdna.us Bug Reporting: support@webdna.us

= --Apple-Mail=_44D2972F-CAE6-4085-BE26-E6ECC26272EF-- aaronmichaelmusic@gmail.com

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

New Website with Redakto CMS (2003) Country & Ship-to address & other fields ? (1997) Greeting Card System (2000) Striping Characters (1998) Writing encrypted files causes errors ... (1998) [WebDNA] Best WebDNA version for OS X Server 10.5.8 on PowerPC? (2010) Help! WebCat install problems... (2000) [WebDNA] Migration from 6.2 to 7. Problems with writing to DB's (2012) WebCat2: multiple currency support (1997) WC Database Format (1997) Protect (1997) 2nd WebCatalog2 Feature Request (1996) japanese characters (1997) RE: [WebDNA] Mixed Content (2009) WebCat2b12 CGI Mac - [shownext] problem (1997) emailer (1997) WebCat on Alpha? (1997) WebCat2b13MacPlugin - nested [xxx] contexts (1997) WebCat editing, SiteGuard & SiteEdit (1997) WebCat2b15MacPlugIn - [authenticate] not [protect] (1997)