Problems with the Http request

Post Reply
Natter
Posts: 524
Joined: Mon May 14, 2007 9:49 am

Problems with the Http request

Post by Natter »

Hi,

I enter a URL in the browser's address bar https://MySait/xx.php?DNSID=wCx and go to this page. In my program, I make an http request to this page

ohttp: Open( "GET", "https://MySait/xx.php?DNSID=wCx", 1)
ohttp:Send (NIL)
.......
and I want to get the HTML text of this page
buf:=ohttp:responseText

However, as a result, I get the HTML text of the main page of the MySait site. It turns out that the HTTP request is not triggered if the URL contains xx.PHP ?
User avatar
cnavarro
Posts: 5792
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: Problems with the Http request

Post by cnavarro »

And if you use as url : https://mysait ( only ) ?
C. Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
Si alguien te dice que algo no se puede hacer, recuerda que esta hablando de sus limitaciones, no de las tuyas.
Natter
Posts: 524
Joined: Mon May 14, 2007 9:49 am

Re: Problems with the Http request

Post by Natter »

"MySite" is, for example, XX.ORG :D
Natter
Posts: 524
Joined: Mon May 14, 2007 9:49 am

Re: Problems with the Http request

Post by Natter »

I think that the problem with the request is authorization on the site.

ohttp: Open( "GET", URL, 1, login, password)

May need to change the encoding of the login and password ? Or use POST instead of GET ?
Post Reply