syed afzal

Greenhorn
+ Follow
since Oct 21, 2013
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
1
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by syed afzal

Hi,
Professional Java programmer here. I would like ask your view on newly added continuations and its potential.  I for one was excited wayback, when quasar and comsat were introduced by paralleluniverse. Then there were news about project loom bringing native support to continuations in Java.

Thank you.

S
I'm positive now that it is a bug in the java version I'm using.
Indeed very strange. What it could be ? I ran the code in eclipse and in cmd. Everywhere I get "empty". Is it a bug in the Java version I'm using ?
Well well, I'm getting "empty " and no cookies in the output when I ran the code :

Thank you for your effort. I appreciate it.

So, apparently Java's cookie manager is eating my cookies.
7 years ago
Yes. Thanks for clearing that out.
But still even if I remove that code and only use cookie manager, cookieJar is still empty. I dnt get it why cookie jar is not having any cookies.
Here is snapshot from web-sniffer. Server sends cookie even for a non 200 response, without user agent header. But thats not the point, why java is not getting it ?

Thank you for your input. I agree with you. I have checked the response with http://web-sniffer.net and also in my web browser . The response has set-cookie header even for a non 200 response code. I'm still not getting why its not showing in the program.
Hidee hoo folks!

I'm try'in to read cookies from an http response. But someway cookies arent showing up no where. Please help me out with identifying the problem. Thanks !

Help me out here, I am lacking vision.
When we do a https connection using socket, we create a sslsocket to server on port 443, then do shandshake n all . And we print out that we are making a https GET/POST request with the host name header.
However,
In case of making a https connection via a proxy. Should I just create a socket to the proxy and print out that I want a HTTPS GET request to a host, some what like this .. GET https://www.google.co.in/ HTTP/1.1\r\n.
It actually, is working that way. I doubt, need I not manage any sslsocket or handshake on my own ? Will the proxy manage everything for me ?
Thanks guys.
So I guess there is no other way than apache http libs. Now I'l have to spend time on understanding new classes.
Well, I am dealing with some web application firewall fingerprinting issues, which involves crazy stuff like sending http/1.0, making request for http method (verb) which do not exist and more protocol level tampering.
On second thought, is Java a choice to begin with ?

Once again, thank you everyone. I appreciate it.
10 years ago
How do you make a http version 1.0 request using native java classes. I do not want to use apache httpclient or any other dependency. Any simple solution instead of jumping to socket programming ?
10 years ago