Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How are POST parameters submitted ?  RSS feed

 
omkar patkar
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello friends,

I have written a small proxy app, to know how POST parameters are posted ..... but i did not understand a strange thing happening here in my code.
Can someone please help me out ?

The proxy code : -
-------------------------------------------------

-------------------------------------------------

I set my Firefox browser to "127.0.0.1" as the ip address of the proxy app and port as "5050"

The html form looks like this :-

--------------------------------------------------

--------------------------------------------------

So when i run the socket app .... and enter some thing in the html form and click on submit ......i get to see this in console: -

---------------------------------------------------

---------------------------------------------------

i cannot see the parameters that were posted......the firefox window still shows as if its waiting for response to come
But when i CLICK on "STOP" button of the browser .... the console immediately shows ..... the parameters posted.

What could be wrong with the program ???

Please let me know

Thanks and Regards
 
Rob Spoor
Sheriff
Posts: 21048
85
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to our internet protocols forum.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Perhaps it is the readLine() approach? It may be waiting for a line terminator that never arrives?

try reading one character at a time?

Bill
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!