GRUPOS DE DISCUSSÃO PROFISSIONAL
WINDEV
,
WEBDEV
e
WINDEV Mobile
Inicio
|
Mensagens recentes
|
Conecte-se...
|
Disconnect
|
Português
Inicio
→
WINDEV 2024
→
HTTP Request Header Syntax
HTTP Request Header Syntax
Iniciado por Phil Boardman, nov., 13 2018 6:09 PM - 1 resposta
Conecte-se…
Phil Boardman
#1
Publicado em novembro, 13 2018 - 6:09 PM
Hi Everyone
I was wondering if anyone knows the proper syntax for adding information to HTTP Headers in Windev.
I am trying to use OAuth 1.0a, I can't use OAuth 2.0 unfortunately although i know it is supported in Windev 23.
I know the OAuth details need to be within the Authorization Header so i am doing the following...
//Create The Authorization Header String
sAuth is string = [
oauth_consumer_key="!XCONSUMERKEYX!",
oauth_nonce="!XGUIDX!",
oauth_signature="!XSIGNATUREX!",
oauth_signature_method="RSA-SHA1"
oauth_timestamp="!XTIMESTAMPX!",
oauth_token=""
]
//Create The HTTP Request
cMyRequest is httpRequest
cMyRequest.Header["Authorization"] = sAuth //Add The OAuth Details To The Authorization Header
Does this look correct to you? I just want to make sure my issue is with OAuth and not the way i am passing these parameters. Any additional help with OAuth 1.0a would also be appreciated.
Thanks in advance.
Phil.
Denunciar
0
0
Phil Boardman
#2
Publicado em novembro, 16 2018 - 5:43 PM
Have figured out that is is correct now, the problem was the content of the header, not the syntax i was using.
Denunciar
0
0
→ Voltar para WINDEV 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (versões anteriores)
Français
English
Español
Portuguesa
Fermer cette fenêtre
Tipo de Pesquisa
Apenas tópicos
Todas as mensagens
Período de pesquisa
Qualquer momento
Última hora
Últimas 24 horas
Semana passada
Mês passado
Ano passado
Cancelar
Pré-visualização da sua mensagem
Adicionar imagem
Importar uma imagem de uma URL
Enviar uma imagem a partir do seu disco
Deixe um ficheiro ou clique em "Procurar ..."
ou
Cancelar
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Texto