Go Back   EQEmulator Home > EQEmulator Forums > Archives > Archive::Development > Archive::Tools

Archive::Tools Archive area for Tools's posts that were moved here after an inactivity period of 90 days.

Reply
 
Thread Tools Display Modes
  #1  
Old 10-12-2002, 01:53 AM
Kaiyodo
Hill Giant
 
Join Date: Jan 2002
Location: Midlands,UK
Posts: 149
Default Anyone know about HTML Get requests?

My Magelo converter is playing up 'cause Magelo is giving me my data in gzipped format rather than the uncompressed format it was giving me last week.

The request I send is ..

GET
/eq_view_profile.jsp?num=123895
HTTP/1.1
Host: www.magelo.com

I've tried putting "Accept-Encoding:" in there too but it still delivers gzipped data.

Anyone know how I can get the raw uncompressed HTML data? Or decompress the gzipped stuff. Running 'uncompress' from zlib on the data just gives me a corrupted data error.

K.
Reply With Quote
  #2  
Old 10-14-2002, 04:44 PM
curtdept
Fire Beetle
 
Join Date: Apr 2002
Posts: 14
Default

Webservers tend to gzip outgoing data these days to save on bandwidth. Browsers tend to treat this as a code behind more then anything. Not sure but I see your using the .NET framework, you may be able to parse it out using an Common Internet Explorer control rather then a statement like get. Could have IE Retrieve then save as HTML or another type for file format temporarily then parse out the data from the temp file. Just a thought. Could also run the get through a gzip compression library as well. Both would take a little work, not sure which one would get you there faster

-Curtis
Reply With Quote
  #3  
Old 10-15-2002, 04:52 AM
Kaiyodo
Hill Giant
 
Join Date: Jan 2002
Location: Midlands,UK
Posts: 149
Default

Although I'm using Visual Studio .NET I'm not actually using the .NET framework, it's win32 API all the way. I've given up on trying to get uncompressed HTML from the server, my current idea is to try and and instance an MSHTML control and get that to give me the source to the page.

I've tried sending the compressed data to the gzip library for decompression but it just refuses to believe it's valid data. I even went to the trouble of downloading an open source webbrowser and putting in it's decompression code, still didn't work.

Thanks for the tips though. Someday I'll get it wokring again

K.
Reply With Quote
  #4  
Old 10-23-2002, 06:25 PM
Kolo
Hill Giant
 
Join Date: Jul 2002
Location: Chicago Suburb
Posts: 103
Default

The get request should be formatted correctly. I have an application at my work I created that sends Posts and does Gets on the Web server for user tracking. here is the format I used....

GET /path/file.htm HTTP/1.1 <cr>
//(I believe the rest is optional but recommended, especially the Accept: ...not positive though)
User-agent: MyProgramName <cr>
Accept: */* <cr>
<cr>
Place 2 carriage returns at the end, a blank line seems to key servers that you are complete with the request.

I used the User-Agent Field to send my application name so when we parse the logs, we can find out what percentage of total hits are from that app. You can also request the data as Text by putting:

ACCEPT: text/html

instead of the */*. This may be why your getting the gzip data

Can you PM me here in the forum a snippet of your code for accepting data? Maybe you are running into the same issue I had on variable declarations.
Reply With Quote
  #5  
Old 10-26-2002, 05:45 AM
Kaiyodo
Hill Giant
 
Join Date: Jan 2002
Location: Midlands,UK
Posts: 149
Default

Just to let you know, I've got this working now. Swapped from raw HTTP GET requests to Windows' URLMoniker COM interface which does the decompression for me

K.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 05:03 AM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3