Page 1 of 1

How to catch a code from a website wich needed log & pass

Posted: Thu Feb 03, 2011 12:08 pm
by ar-s
Hi,
I'm making a little stuff to extact links from website during surfin with the defaut navigator (firefox for me), so my app catch on the fly the adress and if i press a button,
the source of the page is catch and some links are extract.
I'm using the procedure below to catch the source.

Code: Select all

;- RECUPERATION DE LA SOURCE D'UNE PAGE WEB ----------------------------
ProcedureDLL.s Url2Text2(Url.s, OpenType.b,ProxyAndPort.s)
  ;/ Author : Pille
  isLoop.b=1
  INET_RELOAD.l = $80000000
  hInet.l=0
  hURL.l=0
  Bytes.l=0
  Buffer.s= Space (2048 )
  RES.s= ""
  hInet = InternetOpen_ ( "" , OpenType, ProxyAndPort, "" , 0)
  hURL = InternetOpenUrl_ (hInet, Url, #Null , 0, INET_RELOAD, 0)
  Repeat
    InternetReadFile_ (hURL,@Buffer, Len (Buffer), @Bytes)
    If Bytes = 0
      isLoop=0
    Else
      RES = RES + Left (Buffer, Bytes)
    EndIf
  Until isLoop=0
  InternetCloseHandle_ (hURL)
  InternetCloseHandle_ (hInet)
  ProcedureReturn RES
EndProcedure

ProcedureDLL.s Url2Text(Url.s)
  ProcedureReturn Url2Text2(Url,1, "" )
EndProcedure 
until here everything rules.

Now, i need to do the same thing with a website (or forum) wich needed a login/password to read the content.
So, even if i'm logged, my program can't catch the source code of the page.
How could i solved that problem ?

Thanks

n.b : i don't want using webgadget !

Re: How to catch a code from a website wich needed log & pas

Posted: Fri Feb 04, 2011 4:52 pm
by Rook Zimbabwe
my basic question is: Since YOU are the one logged in WHY would you need to do this?

Once you log in put mouse cursor on page and right click and select VIEW SOURCE (or something similar) and you will have a notepad window opened with the code that can be saved where you want!

and

Why does your avatar have a PIRATE SKULL for a head?

Re: How to catch a code from a website wich needed log & pas

Posted: Fri Feb 04, 2011 7:57 pm
by Nituvious
Rook Zimbabwe wrote:my basic question is: Since YOU are the one logged in WHY would you need to do this?

Once you log in put mouse cursor on page and right click and select VIEW SOURCE (or something similar) and you will have a notepad window opened with the code that can be saved where you want!

and

Why does your avatar have a PIRATE SKULL for a head?
It looks like a character from South Park, or one of the many character creators.

He may just have a thirst for knowledge :mrgreen:

Re: How to catch a code from a website wich needed log & pas

Posted: Tue May 31, 2011 3:34 pm
by ar-s
Why does your avatar have a PIRATE SKULL for a head?
I put a PIRATE SKULL because it's less ridicul thant a potato or a banana...
So you are right, i could copy/past source code with notepad and extract each link i need... But i'm making a link sniffer, i'ts faster and it's a good contest.
He may just have a thirst for knowledge
True


So, thank you for your useless answers.

Re: How to catch a code from a website wich needed log & pas

Posted: Wed Jun 01, 2011 2:43 pm
by PureLeo
(sorry, i don't have an answer)
But does it matters if the guy has a skull something for avatar???
And I bet almost everyone knows how to right click on a web page to get its source, so It wasn't obviously what he wanted.

Sorry guys, but this sounds like "oh, he has a skull in his avatar, he might be making a virus"

There are a lot of suppositions like that in the forums, and this is kinda sad.

Re: How to catch a code from a website wich needed log & pas

Posted: Wed Jun 01, 2011 7:07 pm
by Henrik
PureLeo wrote:(sorry, i don't have an answer)
But does it matters if the guy has a skull something for avatar???
And I bet almost everyone knows how to right click on a web page to get its source, so It wasn't obviously what he wanted.

Sorry guys, but this sounds like "oh, he has a skull in his avatar, he might be making a virus"

There are a lot of suppositions like that in the forums, and this is kinda sad.
+1

Henrik

Re: How to catch a code from a website wich needed log & pas

Posted: Wed Jun 01, 2011 8:57 pm
by Nituvious
I never tried to insinuate that he was making a virus. It never crossed my mind. I was simply referring to the avatar looking like something from South Park. :?