Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Tim Cooke
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Frank Carver
  • Henry Wong
  • Ron McLeod
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Himai Minh

Working with an url. a specific problem

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
I am parsing content within html with a java program I wrote. Here are the links I'm using and the problem:

I use http fox or fiddler to see the web traffic so I can write it all into my java program....

The Link:

http://151.213.249.227/oncoreweb/search.aspx?bd=7%2F31%2F1975&ed=1%2F30%2F2011&n=BRACEWELL%20STEVEN%20H&bt=OR&d=1%2F30%2F2011&pt=-1&dt=ALL%20DOCUMENT%20TYPES&st=fullname


on that page on the right side you will see:

Create Export File

when you click on that, it tries to open a spread sheet, just cancel that. It's not the issue.

the web traffic for the "Create Export File" is 2 GET(s).The first one produces this info in HTTP Fox: :

00:34:53.220 0.099 1108 245 GET 200 application/octet-stream http://151.213.249.227/oncoreweb/Export.aspx

if you look at the content of the first GET (from HTTP Fox or fiddler console), it is basically the content for a .csv file. I want to read that content into a string or a buffer. There is one BIG problem..... I do not know how to work with GET(s). I have always been confronted with POST(s). I know how to deal with them in java, but I don't know how to access GET(s). I do see in the "Headers" tab ( request header) of HTTP Fox there is some stuff that might have to be dealt with, but I do not know how to write the code in java to deal with it.

linking to the first url then to http://151.213.249.227/oncoreweb/Export.aspx does not work (that was advice someone gave me).

Any help would be appreciated.
Tony






 
Sheriff
Posts: 22683
128
Eclipse IDE Spring VI Editor Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Once is enough, thank you. UseOneThreadPerQuestion.
 
Honk if you love justice! And honk twice for tiny ads!
Garden Master Course kickstarter
https://coderanch.com/t/754577/Garden-Master-kickstarter
    Bookmark Topic Watch Topic
  • New Topic